Question: how to connect mobile to pc via wifi?
Answer: For Google Pixel phones or stock Android smartphones, enable the WiFi hotspot feature by going to Settings > Network & Internet and then tap Hotspot & Tethering > WiFi Hotspot. Toggle the switch to turn on the WiFi hotspot, and connect your computer as you would any other WiFi router, to go online.