The Last Post in the topic Disable Script when using mobile demonstrates how to only load a script when a device or screen size is greater then a specific breakpoint. Feel free to copy it and adjust as needed.
1 Like