My website will revert visitors to a seperate mobile site, this seems fairly simple after reading a few guides online.

However, I would like people to be able to click a link on the mobile site which will then take them to the desktop site.

The problem I see is that if I link back to the desktop site it will just redirect them back if they are on mobile?

How can I get around this?