Pick a device. Find your fix. Get back to your day.
First find out whether your iPhone loses the WiFi connection or stays connected without internet. The distinction tells you whether to investigate the phone or the network.