Oral lesions range in their cause and treatment.
Your best bet would be to see a dentist for a proper evaluation while the lesions are present. Most lesions in the mouth will resolve in 2 weeks so don't wait. My first guess would not be an std
but this is not possible to say without seeing the tongue and getting a proper history. Best of luck.