For several reasons, we had to embed a React app into our current web page (not using React) by using an iframe
. The problem is that we're using some components in this React app that are responsive by using media queries.
As you can imagine, the components within that iframe are rendered as if the window was smaller (a tablet in this case) because of the size of the iframe.
Is there any way to make the media queries from within the iframe respond to the size of the parent window? We don't care much about responsiveness right now, but at least we'd like to see everything rendered as if the window iframe was a desktop size.
I had a look at this post, but did not seem to work (I think that changing the meta viewport only works on mobile devices): https://www.quirksmode.org/blog/archives/2011/06/dynamically_cha.html