"What, like with a cloth or something?"
Destruction of potential evidence of a crime is a crime. Obviously here there is nuance and the courts can determine if this is the right interpretation or not. If he had compromising information and he reasonable suspicion he’d be asked to unlock his phone he should have “wiped” it way before he got to the border.
Destruction of evidence is a crime.
They'd have to prove there was evidence.