it is called Spectrophobia
Spectrophobia (from Latin: spectrum, n. specio, an appearance, form, image of a thing; an apparition, spectre) or catoptrophobia (from Greek κάτοπτρον kátoptron, “mirror”) is a kind of specific phobia involving a morbid fear of mirrors. This phobia is distinct from eisoptrophobia, which is the fear of one’s own reflection.
Generally, an individual that deals with spectrophobia has been traumatized in an event where they believe they have seen or heard apparitions or ghosts. The individual could also become traumatized by horror films, television shows, or by nightmares.