How to Make an iframe Responsive With HTML and CSS
To make an iframe responsive, set its width to 100%. For embeds that keep a fixed ratio, such as videos and maps, also use the CSS aspect-ratio property with height: auto. The browser then calculates the height from the available width. Content whose height changes needs a script that talks to the frame, as explained …
