Weird white worms
I have a 20-gallon tank that's been running amazingly for the past half-year. Recently, I have been spotting these white worms on my glass and on the moss and decor. I only spot them on the glass at night or when the fish tank lights are off. They look like flatworms, but I can't tell if they are Rhabdocoela or planaria. They don't get that big, but I wouldn't want to risk my shrimplets, which are in a different container that also has the worms. Please tell me if I need to provide pictures. As far as I can see, they don't have the spade-shaped head and I can't spot any eyes on them.
If I need the worm treatment, is it detrimental to nerite snail and/or shrimplet health? If the worms are an issue I need to get rid of them right away.
Thanks for taking the time to help me!