So people these days still not understand that border crossing are a sensitive location?
Like, literally, anywhere you go, the first thing you should do before leaving is encrypt and reinstall / factory reset (which should delete all encryption keys to the old data) the devices. And if you have very sensitive stuff, use a disk overwrite program, and for phones start recording a video with the phone aimed at like a wall (and turn off the audio recording). Leave it recording overnight and it should fill up your phone. Use 4K recording to fill the storage faster. Then just wipe the phone again. Now, DONT DOWNLOAD ANYTHING THAT COULD BE CONSIDERED SENSITIVE. Load the phone with innocuous things like pet photos, nature, etc... and act like a "normie". Don't have anything critical of any politician, especially not of the country you're visiting, nor of its allies. Its best to not have any social media apps, preferrably, you should never post things under your name, but if you already did have such accounts, delete them.
If they ask you "Do you have any social media accounts" you say "I don't recall having any" or "I don't think so" and "I'm not the type of person to use social media". Or alternatively, you can have a social media account that have only non-political posts, and show then that.
Edit: To be clear, don't travel to the US. But this should be how you prepare for border crossings, even if it isn't the US.