General discussion on PHP
Yes, you can do this. In responsive web design, we have different styles for different screen sizes. The screen sizes are targeted using media CSS queries, which are available in CSS3. Try out the standard device widths for phones and tablets so that your website will be responsive to any mobile except in i-Pad.