That will not fix changing networks which will change your dns provider.
In android you can set up "private DNS" and the IP you put there will be used in any network, WiFi and mobile
In android you can set up "private DNS" and the IP you put there will be used in any network, WiFi and mobile