Mobile home, meant to be moved after installation, is regulated by federal HUD standard. Because the home is capable being moved inter-state, therefore local building code do not apply.
Manufactured home, even being pre-made in a factory, because it does not meant to be moved after installation, must comply with local/state building code.