The best practice for mobile content is using browser and CSS tools to change the display. And google reads the page both as desktop and mobile, letting you know if it sees any problems with mobile usage, (such as your links are too close together to be used on a touch screen).
@media screen and (max-width: 768px) {
.show-sm {
}
.hide-sm{
}
}
They are very good at what they do, and I don't know of any problems or failures that exist in improper interpretations.
However, it is extremely difficult to test small changes, as so much of the algo is based on off-page signals and they delay showing any effect of small content changes preventing reverse engineering of their algos.
In your example you are using the word widget two times instead of
once; that is not an unnatural amount of usage. If you were sniffing
the browser and using different wording for say 20 different models of
mobile devices that would be an unnatural amount of usage and not in line with best practices.
Side note: If Widgets is not the main headline of the page I would strongly suggest using the h2 tag instead. The semantics for screen readers is h1 is the main title not a sub-title, and google is their big friend helping this standard. If you use the h1 for styling purposes then add a class.
h1 .h1 {
...
}
<h1>main title</h1>
<h2 class="h1">sub title styled as main title</h2>
Over-optimization speculations
It has been speculated by black hats that there exists an over the top amount of optimization. That is if the perfect keyword density for a word were 2.35% in content, 1 usage in the title and description, 3 usages in links and everything was perfected ... the perfectly optimized page would go over the top and the page that has 2% or 3% usage less than perfect would be used instead.
The argument against an over-the-top algo, is tweaking and submitting the same page over and over again may be a signal for Google and they just demote the URL until the tweaking stops.
But again there is no way to reverse engineer Google's algos. They are intentionally none responsive to minor tweaks to the content and may intentionally add some random noise that makes it impossible.
Natural, not written for search engine copy, is what Google wants to promote.