A browser setting covers that browser only. Other apps on the machine
continue to use the DNS of the system. Use the
system-wide setup when you can. Use this setup for a
browser on a machine that you do not control, or in addition to the system
setup.
Open Settings → Privacy & Security and scroll to DNS over HTTPS
(or type about:preferences#privacy).
Choose Max Protection. If DoH fails, Increased Protection goes back
to your system DNS, without a filter and without identification.
Under Choose provider, select Custom and enter:
https://dns.opdns.net/<profile-id>/<device>
With a device name such as laptop-firefox, you can tell the browser
apart from the rest of the machine in the logs.
Screenshot to comeFirefox DNS over HTTPS settings with Max Protection selected and the opdns custom provider URL.
If Max Protection is not set, Firefox can turn off DoH by itself on networks
that signal that they filter DNS (the use-application-dns.net canary).
Enterprise policies can also lock the setting.