Set specific Orientation for specific devices using ionic 2

Hi everyone,

I need to set landscape orientation for ipad and tablet devices.
set portrait orientation for mobile devices.
I used preference tag in config.xml but, It did’t help.

If anyone know how to fix this. please let me out from this issue.
Thanks in advance.