I did something like that a year ago for mine (but never published it), complete with scanlines, glow, and beam scan effect. It also handles images as well, making them monochrome, tinted, and subject to scanline bleeding as well. All in CSS so it's very fake but somewhat convincing, and probably not the most optimal way to do it (CPU is like 40% pegged)
I've also made an indie music TV project with this CRT effect and some text animation for retro terminal vibes. If you wait a bit, the ui glitches :) Fun fact, my USB-C monitor connections has a contact error and it produces a similar glitch effect.
Add these to the body style:
Also bump the font-size to 18px, it looks a bit better imho.