I have a paragraph with two field:
Paragraph title[text field]
Node[entity reference field]
The node is displaying its title and an image. By default the
Node title is a H2 heading. But I want it to change based on the existence of the
Paragraph title is set. The
Paragraph title should be a H2 and the
Node title should be a H3. But when the
Paragraph title field is empty the
Node title should be surrounded by a H2.
How can this be done?