Usually these kind of troubles are short lasting if there is no underlying diseases...
Simple stretching, exercise or physiotherapy may help.
But if it last long then first step is to take appropriate tests for Osteoarthritis, or rheumatoid arthritis etc..
Only with detailed case study can guide further.
Answered2021-08-13 13:51:07
Let others know if this answer was helpful