Hi,
In this case, you'll need to reset the HP printer settings as follows:
First, turn the printer on and press the Wi-Fi and red X buttons for 5 seconds, until they start flashing.
You'll do the following in two ways: using HP Smart on your phone or via installation apps.
If using a smartphone, first remove the printer from your PC. Go to Start > Settings > Bluetooth & Devices > Printers > select the printer and Remove devices.
After removing it, open HP Smart on your smartphone and click Add Printer. Remember, the Wi-Fi must be flashing; it will search for the printer and ask you to activate it.
After adding your printer to the network, you can add it to Windows.
Now, using a PC, it's recommended that you download the offline installation software:
Put the printer in configuration mode by pressing the Wi-Fi + X (Cancel) buttons on the printer. Wait for the Wi-Fi icon to start flashing.
Then, remove the printer from Windows by accessing the Start menu > Settings > Bluetooth and Devices > Printers > select the printer and Remove devices.
Next, run the driver download; it will instruct you on how to locate and add the printer to the network.
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable email notifications if you want to receive the related email notification for this thread.
The links provided are from HP the printer manufacturer itself.
Thanks