diff --git a/build-scripts/gulp/entry-html.js b/build-scripts/gulp/entry-html.js
index 0645dcfaf916..3afb7510393c 100644
--- a/build-scripts/gulp/entry-html.js
+++ b/build-scripts/gulp/entry-html.js
@@ -21,6 +21,8 @@ const renderTemplate = (templateFile, data = {}) => {
modernRegex: getUserAgentRegex({
env: "modern",
allowHigherVersions: true,
+ mobileToDesktop: true,
+ throwOnMissing: true,
}).toString(),
// Resolve any child/nested templates relative to the parent and pass the same data
renderTemplate: (childTemplate) =>