recurrent genital ulcers

Anyone else deal with recurrent genital ulcers? I’m a virgin & I saw it happens before/after a period which is true. How do you self treat the problem?