Jojojo hello there, I have kind of the same problem on my pixel 8 pro. Yesterday, before factory resetting my phone (decided to restart from scratch some settings) my WI-FI worked just fine.
But after the resetting, I've been able to connect to my home Wi-Fi, without any issue and install some apps through WI-FI. BUT, after the apps installation process, I wasn't able to connect to any app accounts, hostname issue, and when I went to Vanadium, I wasn't able to reach any website. But my 5G works just fine for me.
I've attempted another factory resetting, same issue. Don't know what to do too...
My other devices work just fine with Wi-Fi.