If an STI is detected, the treatment depends on the type of infection. Bacterial infections like chlamydia and gonorrhea are typically treated with antibiotics. Viral infections such as herpes and HPV may not be curable, but symptoms can be managed with medications. It's crucial to follow up with your healthcare provider for appropriate treatment and to inform your sexual partners.