Easy enough problem to solve. If you’re moving more than, say, 10 MPH, you charge 25 cents for each text sent or received.
Pass it as a federal tax and use the money to build the wall.
Why should passengers on public or private transportation or traveling in vehicles be targeted for the misbehavior of texting drivers who can't behave?