add support for AMD and remove width and height attributes for popups in mobile devices