After some tests I noticed that Firefox browser in my mobile is totally ignoring the pi-hole.
On dnsleaktest.com:
Firefox android gave me the dns of my ISP
Chrome android gave me the dns of Cloudflare as they are set in pi-hole
Is there a way to configure DNS over HTTPS in Firefox android?
I go to about:config and doesn't let me change the network.trr.bootstrapAddress to give my dns ip
Οk, after a lot of more tests the conclusion is that my android phone is bypassing pi-hole most of the time. I also disabled ipv6 from router to be sure and I could still see ads in browsers and other apps. So I ended up that this is a hard coded dns thing in my phone (Samsung s8 and a Xiaomi note 5)
I tried a DNS Changer app (works like local vpn) and pi-hole worked great. But the point is that I don't wanna have an app in use to keep my custom dns up. Anyway to force that in my mobile? Changing the network settings of mobile with custom dns the pi-hole ip never worked too.
The last thing I wanna try is to setup ipv6 too for pi-hole.
My Speedport Entry 2i router had 2 options for ipv6.
At first i had disabled DHCPv6 server and pi-hole worked at my dekstop only. Then I noticed a service called "RA service" which i disabled it too and now mobile clients don't get ipv6 ips.
Pi-hole now works perfect in all devices but I noticed that web pages are loading way too slower now.
Is that my idea or does ipv6 do that?