A DNS based blocker like pi-hole, nextdns, etc, can't block YouTube ads. Or at least it's very hard to it without breaking something as YouTube often uses the same subdomain(s) to load ads and videos.
I use Adblock Plus on iPhone - can be downloaded in App Store and works fantastically with mobile Safari.
I even replaced the Youtube app with a home screen bookmark and I haven’t seen an ad since