You can use a formula field to generate a dynamic HTML. To render the value of the formula field as HTML, you must go to the Advanced section of the formula field and turn on the Render HTML Formula toggle.
💡Note
You can set the height allocated for the rendered HTML by setting an HTML Container Height.