diff --git a/templates/patterns/text_featured_media/pattern-text-featured-media.html.twig b/templates/patterns/text_featured_media/pattern-text-featured-media.html.twig
index 8191ee1356..2e61dcd567 100644
--- a/templates/patterns/text_featured_media/pattern-text-featured-media.html.twig
+++ b/templates/patterns/text_featured_media/pattern-text-featured-media.html.twig
@@ -4,10 +4,12 @@
* Text with featured media.
*/
#}
-{% if title %}
-
{{ title }}
-{% endif %}
+{% set text = text|render %}
+
{% if media.image or media.video or text %}
+ {% if title %}
+ {{ title }}
+ {% endif %}
{% if media.image or media.video %}
diff --git a/tests/Kernel/fixtures/rendering.yml b/tests/Kernel/fixtures/rendering.yml
index f11fc1c1bb..a56f0b3a16 100644
--- a/tests/Kernel/fixtures/rendering.yml
+++ b/tests/Kernel/fixtures/rendering.yml
@@ -2612,8 +2612,7 @@
'img.ecl-media-container__media[src="http://via.placeholder.com/150x150"]': 0
'div.ecl-media-container__media--ratio-16-9 iframe': 0
'figcaption.ecl-media-container__caption': 0
- equals:
- 'h2.ecl-u-type-heading-2': "Heading"
+ 'h2.ecl-u-type-heading-2': 0
- array:
'#type': pattern
'#id': text_featured_media