My understanding is that "Latinx" refers to people that are ethnically Mexico, Central America, and South American (and some parts of the Caribbean like Dominican Republic). Whereas "Hispanic" broadly refers to people who are from Spain's former colonies in the New World. So "Latinx" refers to race, but "Hispanic" refers to culture and encompasses people of a variety of races.
The US government is at least making progress. The US census disconnected "Hispanic" from the race category starting in 2010 [4]. So now people like me can appropriately say that I am racially white but also Hispanic.
1. https://duckduckgo.com/?q=chinese+people&t=canonical&iar=ima...
2. https://duckduckgo.com/?q=tajik+people&t=canonical&iax=image...
3. https://duckduckgo.com/?q=dravidian+people&t=canonical&iar=i...
4. https://www.census.gov/topics/population/hispanic-origin/abo...