Responsive text on Desktop only

Hey!

I made this responsive text code
I’m having issues with running the function on Desktop only - can anyone show me how to add this function correctly?

this is my code:

$w . onReady ( function () {

 makeResponsive ( "#text1" , "h4" , 5 , "#000000" , 1.2 ,   0 ,   96 ); 

});

// Responsive Text Function - Do Not Edit

function makeResponsive ( elementId , textTheme , fontSize , fontColor , lineHeight , charSpacing , width ) {

let style = “font-size:” + fontSize + “vw;color:” + fontColor + “;line-height:” + lineHeight + “;letter-spacing:” + charSpacing + “vw;width:” + width + “vw” ;

$w ( elementId ). html = “<” + textTheme + " style=" + style + “>” + $w ( elementId ). text + “</” + textTheme + “>” ;

}

this is the action I need to add, pls help :woman_shrugging: