There is a code for replacing the class when changing the screen resolution, but the replacement itself does not occur, please help to figure out what is wrong.
$(window).ready(function() { $(window).resize(function() { var wi = $(window).width(); if (wi >= 1300){ $('.comment-text-block').replaceWith($('.comment-text-blocks')); } }); });