I'm trying to put 2 conditions in one if statement. One of the conditions must be written in javascript/jquery because I want to get the window size. I'm using WordPress and when is the category page and when the window size is less than 1024px I want to `display: none`.

```php
<?php
if (is_category()) { ?>
    <script>
        var screenWidth = jQuery(window).width();
        console.log(screenWidth);

        if (screenWidth <= 1024) {
            jQuery(`<?php get_sidebar(); ?>`).css('display', 'none');
        }
    </script>
<?php }
?>

```