You may want to consider CSS breakpoints.  They&#x27;ll do that automatically without the page refresh, assuming the content layout is done using CSS already.<p>A rough design pattern I&#x27;ve seen is
Desktop resolutions: use layout in terms percent.  For instance: left side of text begins at 50% of image width.<p>Tablet and mobile resolutions: fixed layouts for each resolution supported.<p>If you&#x27;re doing the polygon containment using javascript, I imagine implementing such behavior might get really complex.