diff --git a/core/modules/ckeditor5/ckeditor5.ckeditor5.yml b/core/modules/ckeditor5/ckeditor5.ckeditor5.yml
index 819d9b6686d5ee10858ebc6e7951a57eeed54656..e3256c37d73a9b2ddbb0c6d141a0183f0fdf13a0 100644
--- a/core/modules/ckeditor5/ckeditor5.ckeditor5.yml
+++ b/core/modules/ckeditor5/ckeditor5.ckeditor5.yml
@@ -630,7 +630,6 @@ media_media:
   ckeditor5:
     plugins:
       - drupalMedia.DrupalMedia
-      - drupalMedia.DrupalElementStyle
     config:
       drupalMedia:
         toolbar: [mediaImageTextAlternative]
diff --git a/core/modules/ckeditor5/tests/src/FunctionalJavascript/MediaLibraryTest.php b/core/modules/ckeditor5/tests/src/FunctionalJavascript/MediaLibraryTest.php
index 1cde072e9b9cd60170e0d10a715f5457bb42eed1..f94987fb18a982718106f0e8803cb330d332ec17 100644
--- a/core/modules/ckeditor5/tests/src/FunctionalJavascript/MediaLibraryTest.php
+++ b/core/modules/ckeditor5/tests/src/FunctionalJavascript/MediaLibraryTest.php
@@ -229,7 +229,12 @@ public function testAllowedMediaTypes() {
         ->setFilterConfig('media_embed', [
           'status' => TRUE,
           'settings' => [
+            'default_view_mode' => 'view_mode_1',
             'allowed_media_types' => $allowed_media_types,
+            'allowed_view_modes' => [
+              'view_mode_1' => 'view_mode_1',
+              'view_mode_2' => 'view_mode_2',
+            ],
           ],
         ])->save();
 
diff --git a/core/modules/ckeditor5/tests/src/FunctionalJavascript/MediaTest.php b/core/modules/ckeditor5/tests/src/FunctionalJavascript/MediaTest.php
index 3a77e71807fba754b82633fb0fa0692739cd8a9c..e69b37e71487db4892f473c8f88088d4f93cfe7e 100644
--- a/core/modules/ckeditor5/tests/src/FunctionalJavascript/MediaTest.php
+++ b/core/modules/ckeditor5/tests/src/FunctionalJavascript/MediaTest.php
@@ -1196,10 +1196,8 @@ function (ConstraintViolation $v) {
    * Tests that view mode is reflected onto the CKEditor 5 Widget wrapper, that
    * the media style toolbar allows changing the view mode and that the changes
    * are reflected on the widget and downcast drupal-media tag.
-   *
-   * @dataProvider providerTestViewMode
    */
-  public function testViewMode(bool $with_alignment) {
+  public function testViewMode() {
     EntityViewMode::create([
       'id' => 'media.view_mode_1',
       'targetEntityType' => 'media',
@@ -1265,10 +1263,6 @@ public function testViewMode(bool $with_alignment) {
       ],
     ])->save();
 
-    if (!$with_alignment) {
-      $filter_format->filters('filter_align')->setConfiguration(array_merge($filter_format->filters('filter_align')->getConfiguration(), ['status' => FALSE]));
-    }
-
     // Test that view mode dependencies are returned from the MediaEmbed
     // filter's ::getDependencies() method.
     $expected_config_dependencies = [
@@ -1484,16 +1478,6 @@ public function testViewMode(bool $with_alignment) {
     $this->assertNotEmpty($this->getBalloonButton('View Mode 4'));
   }
 
-  /**
-   * For testing view modes in different scenarios.
-   */
-  public function providerTestViewMode(): array {
-    return [
-      'with alignment' => [TRUE],
-      'without alignment' => [FALSE],
-    ];
-  }
-
   /**
    * Verifies value of an attribute on the downcast <drupal-media> element.
    *