just so you know, I recommend checking whether your phone can be used as a WiFi repeater or not, as many Android devices have gained that ability in the last couple of years
This way you can just use your home WiFi for the actual internet connection but keep the connection open by routing it through your phone
Yes, this is as easy as conneting to WiFi and enabling the hotspot feature, checking whether WiFi then turns off or not.