[Divi] Iframe in Divi module

I am trying to iframe another page in a divi tab module on a page in my site.

The iframe works correctly, but I am trying to use css to not display the header and footer and I am also using a media query to get rid of the padding in the tab on smaller screens.

When I am using google inspect element, the page displays correctly with no padding and no header and footer.

But, when I actually load on my phone in the google browser, it does display the header and footer and maintains the original padding.

Using dd go browser it displays correctly.