Hey There, I am Sofia Carter. The problem of "HP printer offline Mac" may occur for a variety of causes. Major issues with cartridges, papers, ink, cables, or hardware may be to blame. A loose power cable, on the other hand, would be the most serious worry. As a consequence, your printer must have been switched off. It's also possible that your printer has gone into sleep mode.
https://www.hpprintersupportpro.com/blog/fix-hp-printer-offline-issue-on-mac/