From Moto's site:
Your DROID RAZR is equipped with a 1080p Mirror Mode via HDMI.
HDMI allows you to display user content, applications, games, browser and more on a large screen TV.
Using mirror mode
1. Record your videos in HD resolution and then watch them in all their glory on your HDTV or monitor. Just connect using an HDMI cable.
2. Plug in an HDMI cable to connect your phone and your HDTV.
Note: you can't display DRM-protected content from your phone.
To adjust the viewable area, press the menu key> Settings > HDMI > Overscan. Move the slider to adjust the viewable area.
You don't need to spend big bucks on an HDMI cord either. Just be sure it's micro (not mini) on one end. I got this 15 ft one from Amazon for $12 and it works great.