Below is the link for the official support page for your laptop on the HP website.
Using any device that has an Internet Connection, expand the Networking section on that page and download the installer for the '
Realtek RTL8xxx Wireless LAN Drivers (2022)'.
Then transfer that installer to your laptop and use that to reinstall (not update) the WiFi drivers, then restart your laptop to apply the change.
.
.
.
Standard Disclaimer: This is a non-Microsoft website. The page appears to be providing accurate, safe information. Watch out for ads on the site that may advertise products frequently classified as a PUP (Potentially Unwanted Products). Thoroughly research any product advertised on the site before you decide to download and install it.