Previously, I created a website using nextjs 12 and now I am looking to rebuild it entirely with nextjs 13.
During the upgrade process, I encountered some strange issues. For example, the index page functions properly on my local build but not on Vercel. However, this post will focus on a different matter.
To better understand the situation, I added code to display the current window resolution. Surprisingly, both my old and new websites have the same resolution on desktop (3072 x 1595 on a 4k screen). Typically, smartphones have lower resolutions compared to their screen size. The issue arose when I discovered that my old website had a resolution of 412 x 811 while the new one had a resolution of 980 x 1929, which is more than double. This caused everything to appear very small and unusable on smartphones. I'm not sure what I did differently on my older site, or if the resolution was automatically set somehow.