Add Adapter Design pattern other full example for mobile website desktop version , mobile version without rewrite your entire site just create adapter for communication between site depened on your user Http agent then call adapter which will handle everything
update reademe file