Mouth ulcers can be due to many reasons
Improper dietary intake
Drug related
Harmonal imbalance
Habbits
Stress related to name a few.
Look out for symptom like redness, bleeding or burning sensation, unable to eat hot or spicy, excessive salivation than normal.
Next Steps
Consult a dentist and take medication accordindly