Get a fish net scoop. As soon as the baby fish come out, scoop them up and out to a different tank. Wait till they are grown before putting them back with their Mother.
My mom always had a separate tank set up to put the parents in so the wouldn't eat the eggs or the young when they hatched... It worked for her.
If fish are a young pair, this will often happen, this my happen 6 -7 times till thy learn what to do
even then thy will eat there own free swimming young., its a learning curve for patents. .
even then thy will eat there own free swimming young., its a learning curve for patents. .
Remove them from parents asap. Get med.blue it make the water blue and air stone and keep the same water the baby's are in now
Thank you ryanna for your answer and will be doing the same in future still learning about tropical fish.