I have deployed a Django-React hybrid app to Railway, and the site isn’t responsive on my iPhone. The styling is fine on desktop browsers. I previously deployed the same app as a decoupled app (frontend on Netlify, backend on Render) and the mobile version is responsive. Does anyone have any suggestions?
You can use the Developer Tools → Network tab in whatever browser you use and check if some of the requests for CSS, js etc are failing. That should give you a place to start.
If that doesn’t give any insights, then is something to do with your js code.
Yes, the backend for the decoupled app on Render has to spin back up after some time of inactivity. However, I was referring to responsive as in layout. The hybrid app displays as a desktop layout on my iPhone: rows of 3 cards each. The decoupled app is mobile friendly with a card filling up the screen. I’m trying to figure out if there’s some reason why Django serving the React static files in the hybrid app is not applying the mobile-friendly layout.