Anyone know a good constipation (over the counter) medication for an almost two year old? Also, any good tips or medicine for the kid to increase her appetite?

My daughter has been having issues with constipation for a few months now. I have tried every possible home remedies and medications recommended but still nothing worked. She also has a habit of holding on poop inside so it’s making her condition worse. Has anyone been successful to aid relieve constipation for your toddler?

She also has been having issues with her appetite. She suddenly stopped eating and says doesn’t like the taste , we have been giving her the same food she has been eating, she even says no to her favorites now. What could be the issue ?