How to Make Office Online Embedded Viewer Responsive on Mobile
Question details
User wants to make an embedded Word document fully responsive on mobile screens without it zooming out or getting cut off.

- Product
- Office Online Embedded Viewer
- Device & OS
- not provided
- Scenario
- Embedding a Word document into a website using view.officeapps.live.com to be viewed by users on mobile web browsers.
- Observed behavior
- The iframe viewer initially appears responsive but then automatically adjusts to 75% zoom, cutting off part of the document page on mobile devices. Desktop rendering works normally.
Ensure you have access to the website's HTML/CSS source code where the iframe is embedded, and test the page across different mobile browsers like Safari and Chrome to observe the rendering differences.
Adjust Iframe CSS and Provide a Mobile Fallback
Use responsive CSS wrappers for the iframe and provide a direct download or PDF link, as the native viewer lacks mobile responsiveness parameters.
The embedded Office viewer (view.officeapps.live.com) does not expose parameters for forcing mobile responsiveness or controlling the default page zoom. To improve the user experience, you must manage the iframe container's behavior and offer alternative viewing methods.
Wrap your iframe in a <div> tag and apply CSS styles such as 'width: 100%;', 'max-width: 100vw;', and 'overflow-x: hidden;' to prevent the iframe from stretching beyond the mobile screen.
In your HTML code, change the iframe's width and height attributes to use percentages (e.g., width='100%') instead of fixed pixels to allow it to scale naturally with the parent container.
Because the viewer forces a 75% zoom that cuts off content on smaller screens, add a standard HTML hyperlink below the iframe prompting mobile users to 'Click here to download or view the full document'.

Try WPS Office for Reliable Document Management
Since Microsoft's embedded viewer has limitations on mobile, you can use WPS Office to convert your documents into mobile-friendly PDFs. WPS Office is a highly compatible suite that allows you to easily format, edit, and export your files for flawless web embedding.
- 1. Open your document in WPS Writer: Launch WPS Office and open the Word document you intend to embed.
- 2. Export the document to PDF: Click on 'Menu' and select 'Export to PDF'. Choose your saving location and confirm.
- 3. Embed the PDF instead: Upload the newly created PDF to your server and embed it into your website. PDFs generally render much more reliably on mobile browsers than Word documents.

Frequently Asked Questions
Is there a URL parameter to fix the zoom in Office Online Viewer?
No, the view.officeapps.live.com viewer does not support URL parameters to dictate the default page zoom or force strict mobile responsiveness.
Why does the document cut off on mobile but look fine on desktop?
The viewer is optimized for standard page layouts (like A4 or Letter). On narrow mobile screens, it attempts to fit the document by applying an automatic zoom (often 75%), which can push the edges of the document outside the visible area of the iframe.
What is the best alternative format for embedding documents on mobile websites?
Converting your Word document to a PDF file before embedding is the most reliable method. PDFs maintain strict formatting and are supported by responsive mobile PDF viewer libraries, preventing unwanted zooming or content cut-off.
Can I use Google Docs viewer as an alternative for Word documents?
Yes, you can try changing the iframe source to the Google Docs viewer (docs.google.com/viewer). It sometimes handles mobile scaling differently and may offer a slightly better result for specific Word document layouts.




