Hope this makes sense, but I couldn't understand why the twitter-bootstrap I was loading in a iframe on mobile was not being responsive. Until I realized after alot of investigations, it was to do with the viewport size being reported by the parent page.
When I use this code on the parent, the size of viewport reported to the iframe changes and therefore bootstrap responds accordingly and works for mobile. But when I remove it, the page is unreadable and zoomed out.
<meta content="initial-scale=1.0" name="viewport" />
Even though the above code is already included in the bootstrap theme in the iframe, it has no affect and seems that viewport resize only happens on parent page level, viewport does not work inside of the iframe?
Which causes an issue as I can never control what goes on the parent page to ensure the right viewport?
How does one overcome this issue?
This is the basic html with iFrame, as you will see when you visit the site in an iframe, even though twitter-bootstrap, it is zoomed out
<html>
<head>
<title>Page Title</title>
<style>
</style>
</head>
<body>
<iframe style="width: 100%; height: 100%; max-width: 100%;" src="http://startbootstrap.com/"></iframe>
</body>
</html>