This should be the manifestation of temporomandibular joint syndrome.
Its etiology is mostly mental stress, which leads to muscle contracture around temporomandibular joint, joint dysfunction and abnormal movement. It is also possible that there is a problem with the anatomical structure of the joint, which will also cause this situation.
It is suggested to go to the stomatology department of a regular hospital or a reputable stomatological hospital to find a specialist and take corresponding treatment according to the severity of the disease.
The treatment method is not only infrared physiotherapy or hot compress, but also the severity is different, so there should be different treatment methods.
I hope my answer is helpful to you. I wish you a speedy recovery. Thank you.