Have you tried tightening the screws? Especially of the door jamb side and specifically the top hinge?

Once I even put longer screws in to grab more wood.

I?d try tightening the hardware first before I spent any money.