Border entry is different than self incrimination.
If you are charged with a crime you cannot be compelled to give a password as it resides in your head. However if you use finger prints or face recognition to unlock it you're SOL.
Best thing to do is get an android and setup a dummy account. use that account when you get off the plane so when you unlock it there is nothing to go through.
Been doing that for many, many years.
Just recently made some tweaks and now my vimwiki output goes to my Obsidian directory. This way i can get a nicer output on my phone when I'm really just wishing to search and read my notes instead of taking them.