That doesn’t apply to all bikes, and it doesn’t completely solve the problem, but it’s a risk you’ll have to take if you use a phone mount on your bike. There’s also the weather.
"Build a swiveling bike rack for efficient wall-mounted storage. Follow me, April Wilkerson, for more DIY projects and hands-on building!" ...