Different content on different mobile browsers
-
Is it ok to run different html & different content on different mobile browsers even though the url is same. or the site can get penalize ?
-
Google talks about this as part of Dynamic Serving of content. Here is their article, which also includes tips on how to distinguish user agents (including how to signal this to Google):
https://developers.google.com/webmasters/mobile-sites/mobile-seo/configurations/dynamic-servingThis is an okay practice and I'd not had any Google penalties when I've utilized it. The big concern with doing this type of dynamic content shift for different devices is to avoid cloaking, which Google mentions in that article as well (be sure to click on the link in that Dynamic Serving article for more about cloaking). So long as you avoid cloaking, you should be in okay territory.
My advice is to test out your user agent matches thoroughly - I'd even go so far as to try this on one or two pages with some simple changes for each user agent and then make sure Google indexes those pages correctly before rolling this out to your entire site.
Hope that helps.