diff -u b/core/modules/views/templates/views-view-grid.html.twig b/core/modules/views/templates/views-view-grid.html.twig
--- b/core/modules/views/templates/views-view-grid.html.twig
+++ b/core/modules/views/templates/views-view-grid.html.twig
@@ -74,17 +74,17 @@
{% endif %}
{% for row in column.content %}
- {% if options.row_class_default %}
- {%
- set row_classes = [
- 'views-row',
- 'row-' ~ loop.index,
- ]
- %}
- {% endif %}
-
- {{ row.content }}
-
+ {% if options.row_class_default %}
+ {%
+ set row_classes = [
+ 'views-row',
+ 'row-' ~ loop.index,
+ ]
+ %}
+ {% endif %}
+
+ {{ row.content }}
+
{% endfor %}
{% endfor %}