Mucus plug

How do you know your loosing your mucus plug. Just used the bathroom after the gym and saw a mucus like stringy discharge. I’m only 24 weeks so I’m kinda freaking out.