Changed this to click _desktop_next if it's visible, else click _mobile_next. Thanks @davehunt !