Wigan opened the scoring through Bryan Fletcher but Warrington soaked up the pressure and hit back with tries from Richie Barnett and Chris Bridge.
And the Wolves moved away after the break thanks to Lee Briers, who kicked four drop goals and a penalty as well as converting Henry Fa'afili's try.
Wigan have now lost four of their opening five Super League matches.
Warrington coach Paul Cullen
"If you consider the first 40 minutes, Wigan spent 35 minutes attacking our
tryline and scored one try, and we spent five minutes attacking theirs and
scored two.
"It was a monumental effort in defence, and I think we only missed one tackle
in that first half, when they scored their try.
"Psychologically we broke the back of the game then. We knew in the dressing room at half-time we had the game."
Wigan: Dallas, Calderwood, Brown, Vaealiki, Richards, Orr, Moran, Logan, Higham, Paleaaesina, Hansen, Prescott, O'Loughlin. Replacements: Tickle, Fletcher, Hargreaves, Godwin.
Warrington: Grose, Fa'afili, M. Gleeson, Kohe-Love, Barnett, Briers, Bridge, Leikvoll, Clarke, Wood, Swann, Wainwright, Westwood. Replacements: Noone, Hilton, M. Gleeson, Parker.