If I had one of the super-cheap no-name phones, I might worry about vibration but not with any of the major names. I've used an iphone 8 in a quadlock case on a rigid mount for more than 10,000 miles on both a road bike and mountain bike and never worried or experienced any issues due to vibration. A frame bag would be cushy in comparison.