My setup: Pi-Hole, PiVPN and Passepartout App [0] on iOS.
As soon as i connect to the mobile network or another untrusted Wifi, Passepartout automatically starts the VPN connection in the background and disables it once i either connect to a trusted network or trust the currently connected network.
Nice illustration of deploying an application to an edge network, but for practical purposes if you want a hosted pihole, nextdns does a pretty good job of providing custom filtered dns with good latency.
It does not, with maza you would need to configure it on every device, with pi hole once it's up and running you would be able to use it on your phone, tv and so on.
[0]- https://github.com/pivpn/pivpn