Pi Hole already has documentation on how to use DoH with it, and it already works:
https://docs.pi-hole.net/guides/dns-over-https/
Note: this is using cloudflared but that's just a DoH, it can and happily will query whatever provider you tell it to.
https://docs.pi-hole.net/guides/dns-over-https/
Note: this is using cloudflared but that's just a DoH, it can and happily will query whatever provider you tell it to.