To be fair, this issue was happening with my iPhone X also for the last 2 years. Every single time I leave a working Wifi connection (home or work), I can't use Safari, Google, Chrome, etc. Oddly enough, Waze and other apps work (some don't), can make phone calls with no problems. However the only way to get a web search to work is restarting my iPhone, though at times I can toggle cellular off/back on to do the trick. But why should there need to be a trick, it should just work and turning your phone on and off each time you leave WiFi is just simply aggravating... lol. Ugh! (2 years worth of pain resurfacing there) 🙂
I've reset network settings more times than I can remember over the 2 years...no dice! Any help, ideas would be appreciated as this has gone on long enough. Peace! - Fredy