Both of these work in basically the same way, the controllers are always connected wirelessly (and require batteries) even when attached to the console. Switches inside detect whether they're attached or detached and change the control config accordingly
Here's the aliexpress link if anyone is into it https://www.aliexpress.com/item/1005007915689167.html
The new one btw is uncreatively called "H6". It's smaller than the smitch but the screen is brighter and actually the correct aspect ratio. They both claim "1000" games but have repeats, the included games and menus are different & tbh it's kind of a wash on which set is "better"