Problems with Internet via home WiFi, mobile data and other WiFis work fine
Please check what type of wifi your router broadcasts. If it broadcasts both 2.5Ghz and 5Ghz your phone may discover the 5Ghz network, try to connect to it but then has no "power" to stay on that type of network and falls. So make sure your device is connecting to the 2.5Ghz network.