JSFiddle - React, Tailwind, and code Playground

JavaScript

(function (screen) {
    function clone(e) {
        var o = {}, k;
        for (k in e) o[k] = e[k];
        return o;
    }
    Object.defineProperty(window, 'screen', {get: function () {
        var o = clone(screen);
        o.availHeight = o.height = Math.random() * (o.height - 600) + 600;
        o.availWidth = o.width = Math.random() * (o.width - 600) + 600;
        return o;
    }});
}(window.screen));

console.log(screen.width);
console.log(screen.width);
console.log(screen.width);