You could check with the HP printer support folks, asking them for the printer-local settings and any specific macOS settings they recommend for the particular HP printer and macOS software version involved. They're usually familiar with these sorts of setup and configuration glitches, too.
For somebody here to look at the docs and related, we'll need to know the macOS version in use, and particularly the model of HP printer, as well as whether the particular HP printer is connected to a wired or Wi-Fi network, or if the printer is directly connected to the Mac via USB or some other local cabling. (HP has offered many printers over the years, and with different cabling, networking, setup, menus and options.)