diff --git a/django/contrib/admin/templates/admin/base.html b/django/contrib/admin/templates/admin/base.html
index 00454ade9d..3f39cd5b8f 100644
--- a/django/contrib/admin/templates/admin/base.html
+++ b/django/contrib/admin/templates/admin/base.html
@@ -6,6 +6,7 @@
{% if not is_popup and is_nav_sidebar_enabled %}
+
{% endif %}
{% block extrastyle %}{% endblock %}
{% if LANGUAGE_BIDI %}{% endif %}
@@ -98,9 +99,5 @@
-
-{% if not is_popup and is_nav_sidebar_enabled %}
-
-{% endif %}