DNSCrypt is also a viable option. - https://dnscrypt.info/
You can use it to connect to Cloudflare or other DoH servers, and this will not be limited to queries sent by Firefox.
On iOS, use DNSCloak.
Adding an authentication header prevents alteration but it does not present a viable option to the problem statement.