TMI. Sorry! But mucus plug?

Every time when I poop and I push either pieces of mucus like blobs come out my vagina or when I wipe my front I'll have mucus like discharge it's kinda clear and greenish what is that? I'm 37 + 3 weeks