How to make banner images responsive from desktop to mobile views

How do I change the settings for desktop? Does that need a separate code?