Ozil was named man of the match as he scored the opening goal in the second half and also assisted another to help the Gunners get their top-four bid back on track.
Arsenal's win against West Ham moved them back to 5th position with four points adrift 4th placed Manchester City as they face Crystal Palace at the Selhurst Park on Monday to continue their Top 4 struggle.
Arsene Wenger believes Mesut Ozil has mentally recovered from Arsenal's damaging Champions League defeat against Bayern Munich as the Gunners recorded their first league win since February 11.
Germany global Ozil - making his 150th Arsenal appearance - has come under fire for lacklustre displays this season and the ire aimed in his direction increased during a run the Gunners took into Wednesday's game that had seen them win just three times in their last 10 matches in all competitions.
West Ham had no shots on target in the first half against Arsenal, which seems to suggest they came to get a draw.
"I have never questioned the mentality of the team, its just when you go through a hard period the confidence and happiness goes quickly and comes back slowly".
"They have brought in players for the Europa League".
"Somebody just reminded me that we have scored more than 100 goals already this season", said Wenger, "so going forward we have always been good, but defensively in recent weeks we were not efficient enough".
Critics may also point out that, from an Arsenal perspective, West Ham represented "opposition in even worse form than themselves".
"We are in the final sprint in the Premier League and consistency will be very important".
West Ham "entertain" Swansea City at the London Stadium on Saturday in a proverbial six-pointer.
"Especially in that situation, it harms you and it's a killer, but make no mistake, although it was a killer, it was a good game that we played". You need one great win or three points to get it back.
"I didn't lose my belief in them, they are good players".
Such comments, though, alongside Ozil's sudden resurgence do allude to a huge weakness in his game.
"And when you're at the club for such a long time and you really care about people who care about the club, you know how sad they are when it doesn't go well".