This sounds like something that could be corrected by a CSS snippet, but I don’t know enough about it to help in detail. These links may help you work it out.
- CSS snippets.
- Obsidian CSS Quick Guide (forum) shows how to explore the parts of Obsidian to find what exactly to target with the snippet.
You might also search the forum to see if this has come up before and someone has provided a solution.