BTW bringing up the power off UI on iPhone (holding power and up buttons at the same time) disables FaceID/TouchID until a passcode is entered.
https://www.cbp.gov/sites/default/files/documents/inspection...
If you are not a US citizen, refusal to unlock a phone and allow inspection, inclusive of allowing access to social media and corporate apps, will probably result in denied entry. They also have the right to detain you until indefinitely until you unlock the phone if they have "reasonable suspicion", but requires a court order within 72 hours.
Most foreign counties have similar rules in place for residents and non-residents.
https://www.cbp.gov/sites/default/files/documents/inspection...
They also get to steal it and keep it if they want.
ArriveCAN (Canada), Mobile Passport Control (USA), WeChat (China), and other mandatory government apps would be perfect vectors to stage highly targeted attacks.