Baby constipation!

Any remedies that you guys did that absolutely always helped with your baby’s constipation? My baby is almost 8 months and this is the second time she’s showing signs of constipation again. She is a breastmilk baby and taking in 2-3 meals of solids daily! She is also on iron supp which I think is probably the thing that is constipating her. She is again having small rock pellet poops all day! Last time, she took prunes and it took about a day for it to work! I am wondering if there is any redemies that work for you guys or what I can do constantly for prevent this from happening all the time?