Adjust UI Image to Text inside

Hello,

As you can see on the screen, my text is going outside the image because the image Height and Witdth are fixed.

However, I would like the Width to stay fix but the Height to adjust automatically to make it fit the content. Can you help please ?

https://docs.unity3d.com/Manual/HOWTO-UIFitContentSize.html

Thank you, however I already found it but did not manage to understand it, maybe because I am still a beginner or not a native english speaker, and this is why I asked for help here. So I am still looking for help on this.