diff --git a/core/modules/edit/edit.module b/core/modules/edit/edit.module
index 87732dc..11fc77d 100644
--- a/core/modules/edit/edit.module
+++ b/core/modules/edit/edit.module
@@ -184,6 +184,9 @@ function edit_preprocess_field(&$variables) {
  */
 function edit_entity_view_alter(&$build, EntityInterface $entity, EntityViewDisplayInterface $display) {
   $build['#attributes']['data-edit-entity-id'] = $entity->getEntityTypeId() . '/' . $entity->id();
+  if (!isset($build['#theme_wrappers'])) {
+    $build['#theme_wrappers'] = array('container');
+  }
 }
 
 /**
