A printer driver can be an essential requirement but you need to see whether it has been correctly installed. Ideally, you need to configure the device first. Then you can download the driver compatible with the device and from the original source. When it has been correctly and completely installed, your computer and printer should connect.
To know about this in detail, this is the link to check: https://www.errorsdoc.com/hp/how-to-install-hp-printer-wireless-usb-printer-software-installation-without-cd/