What Are Some Home Remedies for Baby Constipation?

Water. If your baby is over 6 months old (the age from when it’s OK for him to drink water), offer him a little water in a sippy cup with his meals. This shouldn’t replace breast milk or formula, however.
Fruit juice. A few ounces of 100 percent fruit juice such as apple, pear, or prune juice can also help your baby. These juices contain sorbitol, which works like a natural laxative.
Certain fruits and vegetables. Once your baby is eating solid foods, give him pureed foods such as prunes, pears, peaches, and peas. These can help with constipation since they contain more fiber than other fruits and vegetables.
Infant cereals. Try feeding him whole-wheat, barley, or multigrain infant cereal once he is eating solid foods. These three types contain more fiber than rice cereal and may help get things moving.

https://www.pampers.com/en-us/baby/health/article/baby-constipation