When I did my seaplane rating I was handed a waterproof bag for my phone, with a strap, and told to wear it Every Single Time I flew. The phone still works inside the bag, touchscreen no problem. Probably a good idea to cut any security as well, so you don't have to remember a pin while swimming.
No reason not to use it in a landplane, either.