diff --git a/core/modules/media/src/Form/MediaInlineForm.php b/core/modules/media/src/Form/MediaInlineForm.php
index b268f6cd9d..9dab3b419f 100644
--- a/core/modules/media/src/Form/MediaInlineForm.php
+++ b/core/modules/media/src/Form/MediaInlineForm.php
@@ -124,6 +124,16 @@ public function entityForm(array $entity_form, FormStateInterface $form_state) {
       ->getName();
     $entity_form[$source_field]['#access'] = FALSE;
 
+    // If this is an image media entity, and the image field on that entity has
+    // either "Alt field required" or "Title field required", we take care of
+    // that in
+    // @see \Drupal\media\Plugin\Field\FieldWidget\MediaImageWidget::process().
+    foreach (['#alt_field_required', '#title_field_required'] as $extra_image_field_attribute) {
+      if (!empty($entity_form[$source_field]['widget'][0][$extra_image_field_attribute])) {
+        $entity_form[$source_field]['widget'][0][$extra_image_field_attribute] = FALSE;
+      }
+    }
+
     // Inline entities inherit the parent language, so hide translation-related
     // fields as well.
     $langcode_key = $this->entityType->getKey('langcode');
