Go and speak to your doctor. At first, your doctor may suggest a strategy called “watchful waiting”. This is an active process where you carefully monitor your symptoms in case they worsen.
However, a hernia will not repair on its own. The only way to treat an inguinal hernia is through hernia repair surgery. You can learn more about the different kinds of surgical treatments available to you here, or find a hernia specialist to discuss procedures: