Chrome based browsers should "just" work (there'll be an exception somewhere though)
For Firefox based browsers, the simplest way is to use the canary domain (you have to make use-application-dns.net NXDOMAIN).
In case you were thinking of deploying pihole onto your network: it does that automatically (https://docs.pi-hole.net/ftldns/configfile/#mozillacanary), everything does just work after that