President Trump at a rally in Pennsylvania in May. Republicans have not found a meaningful way to address their party’s generation gap.

Credit... Eric Thayer for The New York Times