Pedia lax works wonders and you don’t have to use the whole tube,
My first had similar issues, pooping but hard\solid. Dr recommended pasteurized prune or pear juice 2oz daily or similar puree and avoid bananas, carrots and apples then if that didn't help half pedialax daily. (Prunes worked for us and still using them a yr later)
I always do a prune and apple purée on days my lo is a little stopped up