If you open up a WI-Fi hotspot and there are no devices connected, the hotspot will turn off automatically after a while and saves you battery this way.
- Tap on Settings
- Tap on Network and Internet
- Tap on Hotspot and tethering
- Tap on Wi-Fi hotspot
- Enable or disable Turn off hotspot automatically