If your laptop isn't connecting to a hotspot, try turning the hotspot off and on again. Make sure you are close enough to the hotspot, as distance can affect the Wi-Fi connection. Restart your laptop ...
If your laptop has an LTE or 5G adapter and thus a fast Internet connection, you can use it as a mobile Wi-Fi hotspot to connect other devices in the vicinity to the Internet, such as your smartphone, ...