If your vehicle is showing glovebox won't latch closed, here are the most likely causes and the parts you'll need to fix each one.
Items inside the glovebox are physically blocking the door from closing fully or interfering directly with the latch mechanism.
The plastic latch mechanism or handle has snapped internally, preventing the locking claws from engaging the striker.
The glovebox was removed to access the cabin air filter and wasn't seated correctly on its hinges during reassembly, causing the latch to miss the striker.
The metal or plastic loop on the dashboard that the latch grabs onto has become loose, bent, or broken off completely.
The hinges at the bottom of the glovebox have cracked or broken, causing the door to sag so the latch no longer lines up with the dashboard.