not sure if this post should be in the dataassist forum.
I can't answer the first part, but...
Screen size can't be determined by a browser, what you would need to do is use the screen resolution, showing a different layout depending on the resolution of the browser.
i should think its possible, but have not attempted it