Orientation as per device


I want to set up Portrait orientation for Mobile phones by default (for both Android and iOS), and I want to setup both Landscape and Portrait orientation for ANdroid tablet and iPAD.

Is this possible and how ?

Also, is it possible that i setup default orientation as Landscape for tablets , however it works for both Portrait and Landscape.

Please help