The pop icon shared the stage with Sabrina Carpenter and Charli XCX.