Just found this out today! You can get ChatGPT to display beautifully-formatted math equations if you inject the MathJax script into the webpage and tell ChatGPT to format its answers in LaTeX! :
MathJax Syntax Change | RStudio Blog
Mathematical notation on the web – part 2 - FSE Teaching Academy
MCU - Quarto Q&A: How to use non-default LaTeX packages/macros in MathJax?
How to use LaTeX/MathJax in WordPress | Problems in Mathematics
Getting Started with MathJax to Render LaTeX in 80 Seconds - YouTube