You’re derailleur could be getting corroded within the pivots. I had a similar problem a few months ago. I took it to a shop and the mechanic degreased it in a washer. The derailleur improved but the cage later broke. It was an old derailleur. The silver lining was buying a new side-swing, which is a substantial improvement.
You can try replacing the housing too. Grime will make its way into the housing over time, especially bottom pulls.
You can try replacing the housing too. Grime will make its way into the housing over time, especially bottom pulls.