First open the browser on the MAC device.
Then visit the 123.hp.com site
Now type the model number of your printer.
Get the compatible driver from the site 123.hp.com.
Download and store the driver to the separate folder.
Now open the HP Smart App.
If you don't have the smart app, then install the app on the MAC device.
After the installation open the app and start to add the 123.hp.com/setup to the device.
Once these steps are over choose the driver from the storage.
Open and run the driver.
Process the steps for the driver installation.
don’t forget to accept for the terms and conditions to install the driver.
Now follow the given steps to Install the HP Driver Downlaod for Windows and Mac.