Fix Distorted Iframe Content in the SharePoint Embed Web Part
Question details
The user needs to prevent embedded iframe content from appearing resized or distorted on a modern SharePoint page.

- Product
- Microsoft SharePoint Embed web part
- Device & OS
- not provided
- Scenario
- Displaying iframe content in an Embed web part on a modern SharePoint page.
- Observed behavior
- The embedded content appears to change size or aspect ratio, potentially depending on browser zoom and the web-part layout.
Open the affected SharePoint page and confirm that you can edit it. Identify the embedded source and its intended dimensions or aspect ratio so you can compare them with the displayed result.
Check browser zoom and Embed web part layout
Use these checks to identify whether the apparent distortion comes from browser zoom, the page layout, or the web part's sizing option.
Open your browser's zoom controls, set zoom to 100%, and reload the SharePoint page.
Select Edit on the SharePoint page, then select the Embed web part and its Edit web part button to open its settings.
If Resize to Fit the Page is available, test it both enabled and disabled. Save or republish the page as needed and compare the displayed content.
In page edit mode, check the section and column layout around the web part. Review the iframe's width and height in the embed code and compare their ratio with the source content.

Use responsive sizing for the embedded content
If layout and zoom checks do not resolve the issue, adjust the source page's sizing when you control its HTML or CSS.
Work with Office documents in WPS Office
WPS Office is a free, lightweight alternative for working with documents, spreadsheets, and presentations. Its familiar interface and Microsoft Office format compatibility make moving everyday files straightforward. It does not change SharePoint Embed web part settings.

Frequently Asked Questions
Why does my SharePoint iframe look smaller than expected?
Browser zoom, the page's section or column width, iframe dimensions, and the web part's resize setting can affect its displayed size. Reset browser zoom to 100%, then check the Embed web part settings in page edit mode.
Where can I find Resize to Fit the Page?
Select Edit on the SharePoint page, select the Embed web part, and open Edit web part. If the option is available, test it both on and off.
How can I preserve the embedded content's aspect ratio?
Check that the iframe width and height match the intended proportions. If you control the embedded source, use responsive sizing and an aspect-ratio container in its HTML or CSS.
Can I add custom CSS directly to the Embed web part?
The modern Embed web part may not accept arbitrary wrapper HTML or CSS. If custom styling is needed, apply it to the embedded source page when you control that page.




