HP Printer Drivers -When you change printer offline to online or giving any other warning then you can connect with our hp customer support team. Here hp printer users will get a solution for all issues. It is available 24*7 for customers' help.
To add some info I just had this problem with a family member a few hours ago and I suggest them this https://techloris.com/printer-offline-in-windows-10/. I don't what cause the problem but somehow they figure it out. The error happened most likely with a network issue. After rebooting, both the PC and printer can solve the issue.