Mega-Evolved Pokémon can’t be powered up while Mega-Evolved. Their boosted stats are calculated based on their stats in their normal form, so make sure you’ve powered up Pokémon you want to Mega Evolve as much as possible before Mega Evolving them.