Text Editor <p> margins when changing font size

Hello Team,
I have a question. When I use a text editor and select a

HTML tag for my text and after I change a font-size I see a very strange (top-bottom) margins being created based on the font size. How can I remove those “hidden” Margins?

Thank you