codymillennial
codymillennial

Reputation: 11

iframe not displaying on mobile screen

My site has a couple of iframes across various pages, and all the iframes work when viewed on a computer, but when I view it on my android mobile, only the iframes sourced to youtube display any content. I'll include my code for both, but they're pretty standard.

Displays on mobile:

<iframe class='iframe-box-reading' src="https://www.youtube.com/embed/qzMQza8xZCc" frameborder="0" allowfullscreen></iframe>

Does not display on mobile:

<iframe frameborder="0"  src="https://medium.com/" class='iframe-box-reading' allowfullscreen></iframe>

Idk what's going on to make one work and not the other, but I'm also open to other solutions to embedding the sites, since that's all I'm trying to accomplish.

Upvotes: 0

Views: 3847

Answers (1)

Roljhon
Roljhon

Reputation: 1339

The issue is I think the domain doesn't allow you to load their content inside an iframe. The error will actually be going to display from the console.

enter image description here

Upvotes: 2

Related Questions