If you have Android P you can use a new feature called Private DNS. This goes well with the Cloudflare 1.1.1.1 DNS service:
Alternatively you can download Cloudflare 1.1.1.1 from Google Play. This app creates a VPN tunnel but only for the DNS resolution.
If you have some phone with an aggressive power management (er, Huawei), make sure the add the app to the exceptions list. If you already use a VPN this will not work so you have to use the Private DNS option instead (if your OS version supports it).