Detect when extension mobile is open

Not sure what you are trying to achieve based on your statement.