You don't need DoH for that. Just use a VPN and configure it to replace your host's resolver as long as it is up.
Another advantage of using standard UDP-based DNS over a UDP-based VPN is that it can reorder packets in flight, so it should have lower latency than anything TCP-based.