Good catch. It looks like a styling change was applied to ranking questions at some point that I wasn't aware of.
It all boils down to when the code is meant to swap between mobile and non-mobile modes. In earlier versions of Lighthouse Studio, drag-to-container questions would place the second column beneath the first column for narrow screens. So my code would check to see if this had happened and would run if it had. Later versions of the software appear to not do this, so we'll need new criteria to decide whether or not we want the code to run. Perhaps checking the screen width will be sufficient. Try changing this line:
if ($('#[% QuestionName() %]_div .unranked_container').position().top != $('#[% QuestionName() %]_div .ranked_container').position().top) {
to this:
if ($(window).width() < 800) {