The situation at the U.S. border re phone privacy is exceptionally good . In most countries this isn't a live issue because you have no such rights and everyone would laugh at you for asserting them. There are exceptions, perhaps Germany? In Britain they'll throw you in prison for refusing to give them your phone password, and if you do they'll throw you in prison for the wrongthink tweets they find on your phone. Sh…
Exceptions, such as the entirety of Europe? This level of privacy violation is truly incomprehensible to most citizens of European countries.
The entirety of Europe would not come close to making a majority of countries. Even if I grant you the "entirety of Europe", I bet I'm still right that most (i.e., more than half) of countries reserve the right to search your device at the border, and will compel you to give the password.
For instances where the authorities wish to suspect you of a crime, looks like France was prepared to compel you to give a password in 2022: https://www.fairtrials.org/articles/news/french-court-rules-...
EU-wide, 2024: https://www.politico.eu/article/police-can-access-mobile-pho...
In the U.S., I believe you are covered by your 5th Amendment self-incrimination protections. I have some recollection that there are situations where authorities will compel you, like if you're not the one being accused of the crime.