if the ulcer is not a long standing one,means not more than three weeks duration, you can apply tess oral gel on it three to four times a day for a week. avoid spicy and salty food, avoid hot.
Next Steps
if there is no improvement or it still spreads in size/ there is bleeding from the ulcer kindly contact an oral and maxillofacial surgeon.