Given that both TSA and border agents can ask you to power on your phone, you'll want to make sure your electronics don't die when you travel. Place your phone in the security bin, and if you're asked to turn it on, power the device up or light up the screen and unlock it to show that it's a functioning phone.
All that said, most travelers will never experience this. Provided your phone's battery is powered up, there shouldn't be any issues. But if you are asked to turn the phone on, TSA agents are well within their rights to require that you do so. If you're traveling internationally, you could run into murkier situations with CBP. But as far as TSA goes, all they want to know is that the phone isn't a dummy device being used for another reason and really is a working mobile phone.