Is there a way to get a equivalence between Pixel and device points?

I am using ad mob free for show ads. I also have a footer that works as placeholder until the ad is loaded or just to stay there if no internet connection was available.

The problem I have is that when I change my device “screen size” in Android (options -> advance - > accessibility - > screen size) the footer no longer has the same size as the ad.

I thought I could get a match between pixels and device points to prevent this. Is this possible? I am going in a wrong direction?