"Hey Mr. Border Guard, this is a burner phone, have at it!"
"Okay can you login to your email for me? If not I'm going to have to keep you here until you do."
"Okay can you login to your email for me? If not I'm going to have to keep you here until you do."
All bets are off if you’re a non-citizen entering another country, it depends on the laws and customs there.
A spare old Pixel or iPhone SE is $20-$50 you can use for this purpose.