If a phone is secured in a mount, then it is legal to use while riding. Motorcyclists shouldn’t hold their phones in their hands while driving, as this is unsafe and illegal.