Private DNS on Android uses your DoT custom URL.
These steps are for stock, or close to stock, Android. If you have a Samsung the steps are similar but if it's easier you can refer to these steps instead.
Go to Settings and find Network & internet
Towards the bottom, choose Private DNS
Put in your custom URL: