Apply different classes and styles when in 'live preview' pane
Craft's Request service has a built-in method for this, isLivePreview.

Here's how to only display content in the live preview view:

{% if craft.request.isLivePreview %}
    &lt;p&gt;Only appears in live preview.&lt;/p&gt;
{% endif %}