If your vehicle is showing side curtain airbag trim panel on the ceiling is loose or popping off, here are the most likely causes and the parts you'll need to fix each one.
The plastic clips holding the trim panel are fragile and often break when the panel is removed for aftermarket wiring (like a dashcam) or sunroof repairs.
The panel was removed previously and simply wasn't pushed hard enough to engage the locking tabs or safety tethers during reassembly.
Prolonged exposure to high interior cabin temperatures can warp the plastic trim or degrade the mounting tabs, causing it to pull away from the ceiling.
A leaking sunroof or roof seal can degrade the headliner backing board, causing the trim mounts to soften, tear, and fail.
If the vehicle was in a prior accident and the side curtain airbag deployed, the trim panel (which is designed to blow off) may have been poorly glued or reattached instead of properly replaced.