Jealousy of pregnancy

I feel awful to feel jealousy when i see other girls pregnant or when they announce their pregnancys  i have to delete or i cant get in social media for a while  nor  be around them cause i start feeling sad ughhh then start thinking  why i couldnt have my baby 😔 even though things happen for a reason i miscarried twice  come to find that my x is no good cheater am glad where no longer together but the thoughts still cross my head why it couldnt be me 😔 i guess with time it will get better