I am currently working on a webpage where I have included an image within an iframe. I am looking to change the content displayed inside the iframe based on different media query breakpoints. For instance, if the viewport has a minimum width of 900px, I want to display src="path/one.html"
, and if the width is at least 1980px, I want to show src="path/two.html"
. Can anyone lend a hand with this, please?