diff --git a/core/misc/batch.js b/core/misc/batch.js
index b3013e5..03b940a 100644
--- a/core/misc/batch.js
+++ b/core/misc/batch.js
@@ -8,7 +8,7 @@
 Drupal.behaviors.batch = {
   attach: function (context, settings) {
     var batch = settings.batch;
-    var $progress = $('#progress').once('batch');
+    var $progress = $('div[data-drupal-progress]').once('batch');
     var progressBar;
 
     // Success: redirect to the summary.
diff --git a/core/modules/system/templates/progress-bar.html.twig b/core/modules/system/templates/progress-bar.html.twig
index 0d11991..885a80f 100644
--- a/core/modules/system/templates/progress-bar.html.twig
+++ b/core/modules/system/templates/progress-bar.html.twig
@@ -13,7 +13,7 @@
  * @ingroup themeable
  */
 #}
-<div id="progress" class="progress">
+<div class="progress" data-drupal-progress>
   {% if label %}
     <div class="progress__label">{{ label }}</div>
   {% endif %}
