SubShader Cross Platform

Hello everyone!
I want to make a shader which have two SubShader, one only works on PC/Desktop platform and the other only works on mobile platform, and each of them do have several passes.
So my question is, is there a way to make Unity auto detecting platform and only use the right SubShader from one of them?

#pragma target #.#

#pragma only_renderers *

#pragma lod ###

Basically have each SubShader specify either a target level or appropriate renderer(s), and it will only use the first one valid for the platform. #pragma lod ### gives you further script level control if you want / need specific shader variants for things like different iPhones.

Thank you very much, I will try that.