My MacBook screen shows faint vertical and horizontal lines, and once showed a purple box that went away after a restart. Is the screen failing?
Lines or a colored box on a MacBook screen can be software or hardware. If a restart fixes it, I'd note what software was running and keep macOS updated. If it's hardware, the display cable is a likely suspect, and Apple may fix some models for free. If it keeps happening, have Apple or an authorized service center check it.