If the same persists, reboot your Mac and reset the printing system then:
*Be aware that resetting the printer system will remove any existing print queue and reset any customized driver settings.
Click the Apple menu, and then click System Preferences. Select Printers & Scanners. Right-click (or Ctrl + click) your product in the Printers list in the left panel, and then click Reset printing system. Click OK to confirm the reset. Type your user Name and Password. Click OK. The printing system resets.
Click the plus sign and select the listed printer, be sure to select the AirPrint option within the Use drop-down menu.
Say thanks by clicking the Kudos thumb up in the post. If my post resolve your problem please mark it as an Accepted Solution 🙂
Be alert for scammers posting fake support phone numbers and/or email addresses on the community. If you think you have received a fake HP Support message, please report it to us by clicking on "Flag Post".