Added design and code for mobile detection. The function needs to be integrated into the inspector workflow.