Hello Debbie,
Windows Protected Print Mode is a new security feature that currently only supports printing, which maybe why your HP OfficeJet's scanner stopped working.
To get your scanner online again, you should try to disable this mode by going to Settings > Bluetooth & devices > Printers & scanners, scrolling down to Printer preferences, and clicking Turn off next to the Protected Print option. Once disabled, you may need to reinstall your standard HP printer drivers or the HP Smart app to restore full scanning functionality.