Whitley was elected as the Labour MP for Birkenhead in the 2019 general election, defeating Frank Field, a former Labour politician who has served as the MP for 40 years, running as an independent under the banner of the Birkenhead Social Justice Party.