diff --git a/core/includes/theme.inc b/core/includes/theme.inc
index 3a236e4..485ceec 100644
--- a/core/includes/theme.inc
+++ b/core/includes/theme.inc
@@ -2570,33 +2570,7 @@ function template_preprocess_html(&$variables) {
   $variables['head_title_array'] = $head_title;
   $variables['head_title'] = implode(' | ', $head_title);
 
-  // Display the html.tpl.php's default mobile metatags for responsive design.
-  $elements = array(
-    'MobileOptimized' => array(
-      '#tag' => 'meta',
-      '#attributes' => array(
-        'name' => 'MobileOptimized',
-        'content' => 'width',
-      ),
-    ),
-    'HandheldFriendly' => array(
-      '#tag' => 'meta',
-      '#attributes' => array(
-        'name' => 'HandheldFriendly',
-        'content' => 'true',
-      ),
-    ),
-    'viewport' => array(
-      '#tag' => 'meta',
-      '#attributes' => array(
-        'name' => 'viewport',
-        'content' => 'width=device-width',
-      ),
-    ),
-  );
-  foreach ($elements as $name => $element) {
-    drupal_add_html_head($element, $name);
-  }
+  drupal_add_mobile_meta_tags();
 
   // Populate the page template suggestions.
   if ($suggestions = theme_get_suggestions(arg(), 'html')) {
@@ -2804,6 +2778,38 @@ function theme_get_suggestions($args, $base, $delimiter = '__') {
 }
 
 /**
+ * Adds the default mobile metatags for responsive design.
+ */
+function drupal_add_mobile_meta_tags() {
+  $elements = array(
+    'MobileOptimized' => array(
+      '#tag' => 'meta',
+      '#attributes' => array(
+        'name' => 'MobileOptimized',
+        'content' => 'width',
+      ),
+    ),
+    'HandheldFriendly' => array(
+      '#tag' => 'meta',
+      '#attributes' => array(
+        'name' => 'HandheldFriendly',
+        'content' => 'true',
+      ),
+    ),
+    'viewport' => array(
+      '#tag' => 'meta',
+      '#attributes' => array(
+        'name' => 'viewport',
+        'content' => 'width=device-width',
+      ),
+    ),
+  );
+  foreach ($elements as $name => $element) {
+    drupal_add_html_head($element, $name);
+  }
+}
+
+/**
  * Prepare variables for maintenance page templates.
  *
  * Default template: maintenance-page.html.twig.
@@ -2832,6 +2838,8 @@ function template_preprocess_maintenance_page(&$variables) {
     drupal_add_html_head_link(array('rel' => 'shortcut icon', 'href' => drupal_strip_dangerous_protocols($favicon), 'type' => $type));
   }
 
+  drupal_add_mobile_meta_tags();
+
   // Get all region content set with drupal_add_region_content().
   foreach (array_keys($regions) as $region) {
     // Assign region to a region variable.
diff --git a/core/modules/system/lib/Drupal/system/Tests/Installer/InstallerMobileMetaTagsTest.php b/core/modules/system/lib/Drupal/system/Tests/Installer/InstallerMobileMetaTagsTest.php
new file mode 100644
index 0000000..84e2859
--- /dev/null
+++ b/core/modules/system/lib/Drupal/system/Tests/Installer/InstallerMobileMetaTagsTest.php
@@ -0,0 +1,57 @@
+<?php
+
+/**
+ * @file
+ * Contains \Drupal\system\Tests\Installer\InstallerMobileMetaTagsTest.
+ */
+
+namespace Drupal\system\Tests\Installer;
+
+use Drupal\system\Tests\InstallerTest;
+
+/**
+ * Tests the installer translation detection.
+ */
+class InstallerMobileMetaTagsTest extends InstallerTest {
+
+  public static function getInfo() {
+    return array(
+      'name' => 'Installer mobile meta tags test',
+      'description' => 'Confirm that the default mobile meta tags appear during installation.',
+      'group' => 'Installer',
+    );
+  }
+
+  /**
+   * Run the installation steps needed for this test.
+   */
+  protected function installSteps() {
+    // Start the installer.
+    $this->drupalGet('core/install.php');
+
+    // Test for the mobile metatags.
+    $this->default_metatags = array(
+      'MobileOptimized' => '<meta name="MobileOptimized" content="width" />',
+      'HandheldFriendly' => '<meta name="HandheldFriendly" content="true" />',
+      'viewport' => '<meta name="viewport" content="width=device-width" />',
+    );
+    foreach ($this->default_metatags as $name => $metatag) {
+      $this->assertRaw($metatag, format_string('Default mobile meta tag "@name" displayed properly.', array('@name' => $name)), t('Installer'));
+    }
+
+    // After these assertions all we needed to test is tested, but the test
+    // expects the installation to succeed. If the test would finish here, an
+    // exception would occur. That is why the full installation has to be
+    // finished in the further steps.
+
+    // Submit the language selection.
+    $this->drupalPost(NULL, array(), 'Save and continue');
+
+    // Submit the minimal profile installation.
+    $this->drupalPost(NULL, array('profile' => 'minimal'), 'Save and continue');
+
+    // Submit the next step.
+    $this->drupalPost(NULL, array(), 'Save and continue');
+  }
+
+}
