Move yourself so that there are no obstructions between your phone and any cell towers outside. That might involve stepping ...
If your iPhone keeps disconnecting from a Wi-Fi network, the issue might lie in the software or the backend. Perhaps there's a problem with your router ...