There’s a detailed explanation of why there are different trainers for different store versions, and why some but not all may work cross-platform, here: Why are there different cheats for each storefront? - #4 by Ravenfyre.
From my experience of using mods and trainers for over a decade:
- About 96% of Steam trainers may work on Epic Games.
- About 16% of Steam trainers may work on Ubisoft games.
- About 9% of Steam trainers may work on GOG games.
- Exactly 0% of Steam trainers will work on Windows Store/Xbox Game Pass games.