Google rolled out mobile-first indexing in 2018. This means Google primarily uses the mobile version of your webpage for ranking and indexing purposes. As such, your website must be optimized for mobile users if you wish to rank well, even on desktop.