I think he is next in line after pelosi, so there would be flip to republican president.
The current president pro tempore of the Senate is Patrick Leahy. He would be next after Pelosi.