I don’t think they are required to be the same RTP, no, but they are because to implement a different RTP the provider would have to build a different version of the game just for demo mode. Given that demo mode doesn’t bring in any money, no provider would go to the cost and trouble of doing this. In fact, you will find most if not all games in demo mode use precisely the same software and RNG as the real thing.