You cannot (completely) control your emotions, but you can control the outlook that produces them & your reaction to them.
Feeling envy is IMO not a mortal sin, but continuing to focus yourself in a way that makes you envious and/or reactingto envy in a way that nurtures that envy, are.