1.) Remove All Barriers: Certain building materials can get in the way of weaker signals like Bluetooth. Metal, bulletproof glass, concrete, and plaster are particularly bad, and marble, plaster and brick aren’t great easy. So if you’re really struggling with interference, your first step should be to move your Bluetooth devices away from these materials. That means no brick walls between you and your devices, and definitely no metal desks!
2.) Change Router Channel: If you have an Apple router and you’re constantly getting interference with your WiFi, try rebooting it. Upon restart, the station will search for a new channel. Specifically, a different channel than the one your Bluetooth devices is using to communicate. If you don’t have an Apple router, you may need to instead go into your router settings and try changing the channel manually. Experiment with different channels to see which one works best.
3.) Move Closer to Your Router: If you often find that you’re getting interference when talking on a wireless headset while on a WiFi call (you’ll know because you’ll hear static), try moving closer to your router. This will give you a more robust WiFi connection, so the Bluetooth frequency can’t overpower it.
4.) Get Away From Microwaves and Fluorescent Lighting: Both emit frequencies of 2.4GHz, and moving away from them will distance you from the source.
I'd like to know the following to isolate the issue further-
1.) Are the printer and Mac connected to the same network?
2.) Is your router dual-band enabled i.e., both 2.4GHz and 5GHz? If yes, make sure the dual band has different SSIDs for 2.4G and 5G networks.
3.) What is the distance between the router and the printer?
Also, check with your Internet service provider if your router is able to forward 'Bonjour packets'. Bonjour locates devices such as printers, other computers, and the services that those devices offer on a local network using multicast Domain Name System (mDNS) service records. The software comes built-in with Apple's macOS and iOS operating systems.
Hope this helps! Keep me posted.
And, Welcome to the HP Support Community.
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".