I have these mounted to the side of my bed. But I live alone and my pistol is only in it when I go to bed. It's sturdy and most importantly it has a trigger guard.
https://www.amazon.com/Stinger-Magnetic-Protection-Concealed-Revolver/dp/B07KJDYNN2