Mineral oil

My 7 month old daughters been struggling with constipation since starting solids , her dr recommend mineral oil in her bottles or with juice every day. Has anyone else had to do this for their baby? And what mineral oil did you use?