Trinidadian international Cornell Glen put the home team in front on 14 minutes with a deflected shot off full back Matty Done.
On loan striker Robert Duffy pulled the Reds back onto level terms with a crisp shot on the turn after 32 minutes.
Rovers Chris Greenarce put Tranmere back in front on 47 minutes after Anthony Williams has saved Tom Beahon's first shot.
With six minutes remaining Rovers hit their third, when Cornell Glen crashed home a great drive from 20-yards.
Wrexham fans will be interested to note that Robert Duffy grabbed our second of the day, in the last minute, bringing his tally to four in two reserve team games, when he headed home from a Done cross.
Tranmere: Peter Kennedy, Luke Denson, Aaron Cresswell, Ryan Mitchell, Ash Taylor (Gerwyn Jones 88), John Mullins, Mike Jones, Adnan Ahmed, Cornell Glen, Chris Greenacre (Josh Macauley 61), Tom Beahon.
Subs: Joe Collister, Tony Gornell, Dave Wilson.
Wrexham: Anthony Williams, Wes Baynes, Matt Done, Shaun Pejic, Richard Hope (Lee Jones 46), Andrew Fleming, Eifion Williams (Kai Edwards 63), Sam Aiston, Rob Duffy, Marc Williams, Josh Johnson (George Stewart 72).
Subs: Chris Maxwell, Rob Pearson.
Ref: J Collins
Booked -
Tranmere: Beahon (71), Mullin (75)
Wrexham: Fleming (9), Aiston (80), Baynes (90)