Do you get any errors while trying to print from your MAC?
Make sure the printer and the MAC are connected to the same wireless network.
If you have a Dual-band router and both 2.4GHz and 5GHz networks share the same name/SSID, the printer will not be able to connect to the network. In this case, contact your Internet service provider to assign different names to both the networks.
Update the printer firmware
Click here to download and install the latest printer firmware from your MAC.
Click here to know different methods of updating printer firmware.
Also, check for any software updates on MAC
Click the Apple icon > About This Mac > Software Update and install any available update.
Perform a ping test to check the connectivity
Obtain the IP address of the printer by clicking on the Wireless icon on the printer
On the MAC Go to Spotlight > search for Network utility > select Ping tab > enter the IP address of the printer in the box
Check the second box that says Send only > 10 pings
Click on ping > Check the results at the end if any packets are lost
Note: There should be 0% packet loss, share the results in your next post.
Refer to step 2 of this document to know how to print using AirPrint drivers.
Hope this helps! Keep me posted.
Please click “Accept as Solution” if you feel my post solved your issue, it will help others find the solution.
Click the “Kudos, Thumbs Up" on the bottom right to say “Thanks” for helping!
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".