How is an inguinal hernia treated in a child?

Treatment will depend on your child’s symptoms, age, and general health. It will also depend on how severe the condition is.

Your child will need surgery for an inguinal hernia. The surgery will happen fairly soon after the hernia is found. That’s because the intestine can become stuck in the inguinal canal. When this happens, the blood supply to the intestine
can be cut off. The intestine can then become damaged. Surgery is usually done before this damage can occur.

https://www.stanfordchildrens.org/en/topic/default?id=inguinal-hernia-in-children-90-P03092