At first I thought this is a browser issue, then I installed Twitter as PWA which works just fine as when I put the phone sideway, there should be a prompt to enter landscape mode instead of entering automatically(Unless you have the phone set to auto-rotate).
Lemmy PWA doesn’t have this issue.