That’s determined by your theme. You can override what your theme does by adding appropriate CSS code to the Additional CSS panel of the customizer. Use your browser’s element inspector developer tool to help you develop the appropriate CSS.
Someone here could likely help you with more specifics if they had a live link to the page/table in question.
Thank you for the help. However that table is standard wordpress table and not from my theme.
I’ve used the browser inspector but not sure how to develop the correct css?
The link to the table is here: https://rentvsbuy.com.au/property-vs-shares-calculator/
never mind, solved it from your first advice!