I think Robocalypse might be what you are looking for.
It was released in 2008 for the Nintendo DS and on the iPhone in 2009.
Living up to its name, players are in command of an army of robots defending the Earth against other, evil robots. The catch is, your commanders have been programmed with the minds of aged World War II veterans. Robocalypse' funny, self-referential script comes from Jay Lender (SpongeBob Squarepants) and his writing partner Micah Wright.
The cutscenes are in a 2-d art style: