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.