diff --git a/resources/views/authenticate_with_primary.ejs b/resources/views/authenticate_with_primary.ejs
index 0a642c9adbf54b0e36a163081f2a08750512f89a..35857e8ee3f73ef88bc976524b2ac85489c4db1c 100644
--- a/resources/views/authenticate_with_primary.ejs
+++ b/resources/views/authenticate_with_primary.ejs
@@ -1,8 +1,7 @@
+<!DOCTYPE html>
 <!-- This Source Code Form is subject to the terms of the Mozilla Public
    - License, v. 2.0. If a copy of the MPL was not distributed with this
    - file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
-
-<!doctype html>
 <html>
 <head>
   <meta charset="utf-8">
diff --git a/resources/views/communication_iframe.ejs b/resources/views/communication_iframe.ejs
index 7dba2b0e6a7d94744ea0b244ec4117810af10473..e8ea25450151137023760c15f998adb51c4edce5 100644
--- a/resources/views/communication_iframe.ejs
+++ b/resources/views/communication_iframe.ejs
@@ -1,8 +1,7 @@
+<!DOCTYPE html>
 <!-- This Source Code Form is subject to the terms of the Mozilla Public
    - License, v. 2.0. If a copy of the MPL was not distributed with this
    - file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
-
-<!doctype html>
 <html>
 <head><title>non-interactive iframe</title>
   <meta charset="utf-8">
diff --git a/resources/views/dialog_layout.ejs b/resources/views/dialog_layout.ejs
index 44d74a7aacf643975ca8cb21400ca740e6ef1eec..e794d1600c24914d0f900a25b072ab8517f49ef7 100644
--- a/resources/views/dialog_layout.ejs
+++ b/resources/views/dialog_layout.ejs
@@ -1,8 +1,7 @@
+<!DOCTYPE html>
 <!-- This Source Code Form is subject to the terms of the Mozilla Public
    - License, v. 2.0. If a copy of the MPL was not distributed with this
    - file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
-
-<!doctype html>
 <html>
 <head>
   <meta charset="utf-8">
diff --git a/resources/views/layout.ejs b/resources/views/layout.ejs
index 3f5511903a4c4064d28389fd177ebcb29296ecb2..e9a90ad509ec612f306f66877e864149d7d2659a 100644
--- a/resources/views/layout.ejs
+++ b/resources/views/layout.ejs
@@ -1,8 +1,7 @@
+<!DOCTYPE html>
 <!-- This Source Code Form is subject to the terms of the Mozilla Public
    - License, v. 2.0. If a copy of the MPL was not distributed with this
    - file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
-
-<!DOCTYPE html>
 <html>
 <head>
   <meta charset="utf-8">
diff --git a/resources/views/relay.ejs b/resources/views/relay.ejs
index 83508835f6a81f8a0ca00c49e17abcdadfd59865..b7fe60a7a3d316af7ec017c27c30a4fb181a8cbe 100644
--- a/resources/views/relay.ejs
+++ b/resources/views/relay.ejs
@@ -1,8 +1,7 @@
+<!DOCTYPE html>
 <!-- This Source Code Form is subject to the terms of the Mozilla Public
    - License, v. 2.0. If a copy of the MPL was not distributed with this
    - file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
-
-<!doctype html>
 <html>
 <head>
   <meta charset="utf-8">