You should try to use CSS for this.
- Open your HTML document in browser inspector
- Look for the item you want to target
- Try a CSS rules in browser and see if that does what you want
- Write the rule to a file and pass it to
revealjs
following Quarto doc.
That should be the step to follow to solve this