Add media element to dom before setting data and adding event listeners. Based on device behaviour