It would seem you want to run a DoT proxy in front of Pi-hole, which would be unrelated to Pi-hole itself and has been discussed a few times in this forum - see e.g. No internet with Pi-Hole when using Android's Private DNS feature - #2 by Bucking_Horn.