A warm welcome to HP Forums! This is a great place to get support, find answers and tips to your technical queries.
I understand you need support and I'll be glad to help you out. However, for an accurate solution, I would need more details:
What's the make and model of your WiFi router?
Do you have any antivirus software installed on your Mac?
Do you have a guest network enabled on your WiFi router?
Approximately how far is the printer located from the WiFi router?
Could you check for WiFi interference and also perform a ping test using the Mac Network Utility and let me know the results. Use the printer IP address to perform a ping test, the printer IP can be located by touching the wireless icon on the printer display.