Can we use different form pattern based on the context in a single app?

I am using a right aligned label form for web app (considering the long nature of the form avoided top aligned label). However can I switch to top aligned label if my form is short e.g Signin/up page? Do I have to maintain the same styling for the mobile app as well? As I can clearly see, the right aligned label will be a very bad choice for the mobile. enter image description here