I currently run a WordPress website and have incorporated a Google calendar onto one of the pages. To ensure that the calendar is responsive on mobile devices, I am using the code below:
.responsive-iframe-container {
position: relative;
padding-bottom: 56.25%;
padding-top: 30px;
height: 0;
overflow: hidden;
}
.responsive-iframe-container iframe,
.vresponsive-iframe-container object,
.vresponsive-iframe-container embed {
position: absolute;
top: 0;
left: 0;
width: 100% !important;
height: 100% !important;
}
Around the iframe, I have added:
<div class="responsive-iframe-container">
</div>
While I have observed that the calendar appears smaller and more optimized for the page, it still does not display in its entirety on iPhones and other smartphones. I'm unsure of what might be missing in this setup. Any assistance would be greatly appreciated. Thank you.