diff --git a/core/modules/views/src/Plugin/views/area/Result.php b/core/modules/views/src/Plugin/views/area/Result.php
index d8139cb..72d424c 100644
--- a/core/modules/views/src/Plugin/views/area/Result.php
+++ b/core/modules/views/src/Plugin/views/area/Result.php
@@ -98,6 +98,12 @@ public function render($empty = FALSE) {
       $end = $total_count;
     }
     $current_record_count = ($end - $start) + 1;
+
+    // The @total token is not valid
+    if (($this->view->pager) && (!$this->view->pager->useCountQuery())) {
+      $total = "";
+    }
+
     // Get the search information.
     $replacements = [];
     $replacements['@start'] = $start;
