You cannot change the game mode of an existing world in Minecraft Pocket Edition (Bedrock Edition) after creation. The mode is baked into the world file.
level.dat and change GameType from 1 (Creative) to 0 (Survival)./gamemode survival (or /gamemode 0) works per player, but the world default remains Creative for new players.Best Practice: Start a new Survival world. Use Creative only for testing builds or redstone.