Messi has thrived in various different setups. Played LW, false 9 and 10 successfully in 4-3-3, 3-4-3, 4-2-3-1, 4-4-2 and without any noticeable drop in quality. He also played successfully under various managers with different philosophies. Guardiola, Enrique, Valverde. Barcelona has changed multiple times quite drastically during Messi's career. There are even tactical analyses in which the authors claim that Messi's position adapted from season to season based on the deficiencies of his team mates not his because he could play different roles without his performances becoming worse. It's just a false accusation that he can only excel in one environment. Hell, even for Argentina he's been great overall and this team didn't play like Barca at all.