Clean, warm water is essential. Popeye is caused by a bacterial infection, so keeping your water extra clean is a must.
Does your betta have any tank mates?
Common medications used to treat the bacterial infections that cause popeye are tetracycline, Mardels maracyn, or maracyn 2. Your local fish store should have this, otherwise amazon does for sure.