diff --git a/core/modules/navigation/layouts/navigation.html.twig b/core/modules/navigation/layouts/navigation.html.twig
index bda6bb1864525150356be8a789a24fa0cdabb38a..a66af6e0177d7821bc1f96a87ff1c16f2fbdf101 100644
--- a/core/modules/navigation/layouts/navigation.html.twig
+++ b/core/modules/navigation/layouts/navigation.html.twig
@@ -83,7 +83,7 @@
     </nav>
   </div>
 </aside>
-<div class="admin-toolbar-overlay" aria-controls="admin-toolbar"></div>
+<div class="admin-toolbar-overlay" aria-controls="admin-toolbar" data-drupal-admin-styles></div>
 <script>
   if (localStorage.getItem('Drupal.navigation.sidebarExpanded') !== 'false' && (window.matchMedia('(min-width: 1024px)').matches)) {
     document.documentElement.setAttribute('data-admin-toolbar', 'expanded');