Function added to prevent editing in mobile view

When the window is resized, check if the webpage is in mobile/desktop
view and disable/enable editing accordingly