Get certified for free when you join Fabric Data Days 2026 and dive into Fabric, Power BI, SQL, AI, and other essential data skills.
Join nowJuly 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more
I'm using PowerBI-JavaScript to show dashboard mobile view on the website and it doesn't work, it is fine when I choose type: report then the MobilePortrait layout is applied but with dashboard, this layout is completely ignored and the default MobileLandscape layout is shown instead.
I would expect that embedding mobile layout will work for reports and dashboards: https://github.com/Microsoft/PowerBI-JavaScript/wiki/Embed-For-Mobile
var models = window['powerbi-client'].models;
var permissions = models.Permissions.All;
var embedConfiguration = {
type: 'dashboard',
tokenType: models.TokenType.Embed,
accessToken: "<some token>",
id: '<dashboard id>',
embedUrl: 'https://app.powerbi.com/dashboardEmbed',
settings: {
layoutType: models.LayoutType.MobilePortrait
}
// pageView: 'fitToWidth',
};
var embedContainer = $('#reportContainer')[0];
report = powerbi.embed(reportContainer, embedConfiguration);
Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.
Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.
| User | Count |
|---|---|
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |
| User | Count |
|---|---|
| 5 | |
| 3 | |
| 3 | |
| 2 | |
| 2 |