iframe.responsive-iframe { width: 100%; height: 600px; overflow-x: hidden; } @media only screen and (max-width: 600px) { iframe.responsive-iframe { width: 100%; height: 600px; overflow-x: hidden; } } @media only screen and (min-width: 768px) { iframe.responsive-iframe { width: 100%; height: 800px; overflow-x: hidden; } } @media only screen and (min-width: 992px) { iframe.responsive-iframe { width: 100%; height: 800px; overflow-x: hidden; } }