Analgesic mouth gels can be applied 3 times a day, over the ulcers for a duration of 10-15 days.
Along with it, improve diet of the child. Add a B-complex rich multivitamin like Bevon/ Polybion, once a day.
Next Steps
Kindly provide pics of the ulcers so that the condition can be diagnosed and appropriate medications can be prescribed.