Max Verstappen was feeling confident after securing his second career pole but was later demoted to fourth on the grid.