If the hinge and jamb are painted cut the paint around the leaf with a utility knife.
How to fix a door hinge that is stripped.
Remove the screws that hold the loose hinge leaf to the door jamb.
Fix it the right way not the wrong way.
Diy home improvement tips and hacks.
After time the weight of the door will pull on the hinge and cause the door not to hang straight.
If you have a centering hinge drill use the hinge as a template and the finish repair will be better than new and last for years.
One way to fix the stripped hole is to take one or two cardboard matches and dip them into either white glue or wood glue.
Give the hole time to dry before you replace the screws and hinge.
After you have done that put them in the hole that is stripped.
How to fix stripped screw holes in wood.
Simple hack repairing stripped wood screws.
How to repair a door jamb with loos.