Select a power of 2 according to the probability
P(2^k) = 0.2 * 0.8^k
i.e. p(1) = 20%, p(2) = 16%, p(4) = 12.8%, etc.
Then place this amount in one envelope and twice that I'm the other envelope.
Then, randomly shuffle the envelopes and select one and open it. Say you see the number 16. It could have landed there in two ways: Either 16 was generated and the other envelope has 32. This happens with probability 0.2*0.8^4 ~ 8.192%. Alternatively 8 was generated and the envelope you have is already the largest one. This happens with probability 0.2*0.8^3 ~ 10.24%. Given that you see 16 already, the relative probability becomes 4/9 vs 5/9. In other words the chance that you have the largest envelope already is 5/9. The expected value of the other envelope is then 5/9*8 + 4/9*32 = 18.67 > 16 so you should switch.
In fact, try this for different initial envelopes and you'll see that you should always switch.
But, if you should always switch, why even look inside the envelope?
But, then you're back at the symmetry / no information argument.