My brain just melted reading this. I am sorry but this doesn't make sense and reads like a GPT-3 prompt. Which part of the comment is supposed to be related to the advertisement on app store of apple ?
Identity politics are antithetical to marxist theory but not necessarily to the marxist movements as they actually existed.
Here, things get more complicated because there were marxist movements all over the world, from Africa to Asia to Russia, and each had different motivations and often different goals.
In Russia, marxism was always about identity first and foremost, primarily the identity of various outcast/conquered groups: poles, jews, germans, lithuanians, etc. that were in the conquered regions in the Western part of the Empire - primarily the regions that used to be held by Poland. The abstruse economic theories served as a type of schelling point for a coalition of minorites against the Russian Orthodox majority, and after the revolution there was a systematic effort to suppress Russian identity and replace it with a new "Soviet" identity -- e.g. if you look at the list of Soviet general secretaries, only one of them was Russian (although there is some debate as several of the secretaties had mysterious, and in some cases, clearly invented pasts). There were explicit anti-Russian policies put in place, for example there were communist parties in all the provinces except the Russian province, which had no communist party, and thus no road for advancement except to join the overall Soviet Communist Party, but that preferenced non-Russians for membership.
Similarly when the Soviets drew the borders of various provinces, they explicitly made the minority provinces much larger, dragging in traditional Russian lands, even as they created local minority communist parties that barred Russians from participation, effectively meaning that 1/3 of Russians were living in an explicitly non-Russian province, even though often times they were the majority population in that province.
At the same time, Marxism in other areas had a decidedly nationalist tone - for example in Africa, Indonesia, Vietnam or other nations fighting colonialism. Here, too, it was identity and nationalism that was the motivating factor and not the economic theories.
Really class-based movements are generally limited to the "West" -- e.g. Western Europe and North America. I'm not saying that class isn't important elsewhere, but when you look at what animates radical movements throughout the world, it's almost always race/religion/language that plays the dominant role, and this is as true for marxist movements as for other types of movements.