The man who took over Boris Johnson's last government job is hoping to pip him at the post for the role of prime minister.