Hi guinness32,
If your iPhone isn't staying connected to Wi-Fi, you could try resetting our network settings and adding your iPhone back:
- Go to Settings > General > Transfer or Reset [Device] > Reset > Reset Network Settings. This also resets Wi-Fi networks and passwords, cellular settings, and VPN and APN settings that you've used before.
If your iPhone isn't staying connected still, you may want to look for signs of interference. Are any other devices affected? Does it happen at a consistent time or in a certain place?
You can also make sure your Wi-Fi is configured to best support your iPhone:
Recommended settings for Wi-Fi routers and access points
Thanks for using the Apple Support Communities.