Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

Power Bi Embeded Mobile Layout not displaying

Good day to all. I have a slight problem with displaying mobile view of embedded report. That report has a mobile view, I just can't display it, I always get desktop version. My embed config looks like this:

 

var config = {
    type: 'report',
    tokenType: models.TokenType.Aad,
    accessToken: txtAccessToken,
    embedUrl: txtEmbedUrl + "&mobileView=true", //I tried putting this to get mobile view to activate but to no avail
    id: txtEmbedReportId,
    permissions: permissions,
    pageName: "ReportSection",
    settings: {
        layoutType: models.LayoutType.MobilePortrait, //as you see I call the right setting(hopefully)
        panes: {
            filters: {
                visible: false
            }
        }
        
    }
};

 

This is the content of my WebView in Xamarin App, but I used JavaScript client for embedding. I suspect that I have a file missing that could recognize and turn on mobile view, so here are the files I have:

Screenshot_3.png

 

 

 

 

 

 

 

 

 

 

 

 

 

 

powerbi-client.d.ts version is v2.18.0

I also placed this code in my .html file head element:

 

<meta name="viewport" content="width=device-width, initial-scale=1.0">

 

1 ACCEPTED SOLUTION
V-lianl-msft
Community Support
Community Support

First you will need to create a report with mobile layout using Power BI desktop. After you created the report you can embed it using JavaScript SDK. In order to decide in which layout to embed, use the layoutType property of settings in embed configuration.

https://github.com/Microsoft/PowerBI-JavaScript/wiki/Embed-For-Mobile#embed-a-report-in-mobile-layou... 

Current power bi embedded only available on web browser, it not contains mobile compatibility. You could code your website to change the Iframe to the mobile one when on mobile.

View solution in original post

1 REPLY 1
V-lianl-msft
Community Support
Community Support

First you will need to create a report with mobile layout using Power BI desktop. After you created the report you can embed it using JavaScript SDK. In order to decide in which layout to embed, use the layoutType property of settings in embed configuration.

https://github.com/Microsoft/PowerBI-JavaScript/wiki/Embed-For-Mobile#embed-a-report-in-mobile-layou... 

Current power bi embedded only available on web browser, it not contains mobile compatibility. You could code your website to change the Iframe to the mobile one when on mobile.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.