The layout didn't work properly after deployment

When running on my localhost, the app works perfectly fine. Initially the app will look like the 1st pict but after I deploy it on server the app look like the 2nd and 3rd pict. Can anyone help me, I don’t know how to seolve it.
(before)

(after)