It’s actually quite easy. RTD in the front range in Colorado has drastically reduced issues on buses and the light rail the past couple of years. It wasn’t that hard.
I take various forms of transit regularly and I’ve never had an issue more noteworthy than any interaction I’ve had in a car.
It's pretty easy to solve once the political problem is solved. Colorado has solved the political problem, but many jurisdictions haven't. Mustering the political capital to defy the coalition of groups that oppose strict enforcement of city ordinances on public transport is something many major cities have not managed to do.