3 month old is constipated

My 3 month old had small bowel movements so I didn’t think anything of it, she woke up at 2am screaming and come to find out she’s constipated what can I do to help her and ease the pain 😢