Fix auto-layout issues and ensure consistency across devices