Looking at the ulcer and other parts of your mouth. It appears that you chew pan masala/ tobacco or may be smoking as well. What your mouth looks like currently, provisional diagnosis is OSMF( oral submucous fibrosis) , there are fibrous bands formation under the cheek layers. Which leads to difficulty in opening mouth fully and mouth opening would reduce from 3 vertical fingers to less
You can start Antioxidant : MINTOVIT- L one tablet daily for a month and get it checked with a specialist.
Next Steps
Avoid spicy food items as it can lead to increased ulceration
Health Tips
Quitting tobacco / Pan Masala in any form should be done as this fibrous change is irreversible