function
resizeIframe() {
const
screenWidth =
window.innerWidth;
if (screenWidth <
480) {
iframe.height =
"3437px";
// Mobile max-height
} else
if (screenWidth <
720) {
iframe.height =
"3300x";
} else
if (screenWidth <
996) {
iframe.height =
"2858px";
// Tablet max-height
} else {
iframe.height =
"2395px";
// Desktop max-height
}
}
Here is the full iframe code:
BUILD YOUR JEEP