what is the best strategy to keep that seat next to you empty in public transport?

Sit in the aisle seat, put your backpack on the window seat and close your eyes. Works best with Headphones in.

But if there is literally no other seat and/or an elderly, pregnant or disabled person needs a seat, don’t be an asshole and give up your seat, at least one of them.