How can I treat esophageal varices?

See a doctor. Esophageal varices is not a trivial lesion. It is usually associated with severe and chronic liver disease. It is not something you can treat yourself for.