A few online tutorials mention enabling DoH through about:config but my Firefox version doesn't have those settings.
This is what I had to do to enable DoH through Firefox preferences:
- Click the hamburger icon
- Go to preferences
- Scroll down to network settings and click settings
- Click "Enable DNS over HTTPS"
(By default, this uses Cloudflare as your DNS server, but that can be further configured if you want)