To fix this, remove the back part of the center console where the rear seat vents are. It's secured with 6 clips and will give you access to the armrest hinges and springs. The armrest itself is attachd with 2 screws, check if one is loose or missing, as that might be causing it to pop out of place.