Maximize the width of the popup depending on device