I had this issue while filling DS-160 for me (2009, my F-1), my brother (2018, for his F-1 visa), and my parents (2019, for their B1/B2 visas)
Before 2015 or 2016, US Consulate would match the order of the name on VISA data to follow Vietnamese passport name ordering, which was LastName - MiddleName - FirstName.
After 2016, US Consulate changes the policy so that, anything filled in Given Name field will need follow the US format (which is FirstName-MiddleName)
So, my VISA data was correct, and my other US paperwork has my name filled correctly.
Lets pretend my full name is Nguyen Van Quoc An, I filled the GivenName field as "Van Quoc An", my VISA data has An as First Name, Van Quoc as MiddleName, Nguyen as Last Name.
However, in 2018, I was doing the same thing, and when I helped my brother getting his I-20, and his driver license, it turned out that his name, while still printed on his VISA as Nguyen Van Quoc Binh, has its VISA data completely reversed
Last Name: Nguyen
First Name: Van
Middle Name: Quoc Binh
The DMV and every other US immigration-related office said that the data is like that (it still is now), and if we want to fix it, we would have to go back to Vietnam and redo the DS-160, or pay a big fee to have it fixed.
So, after checking with a few others who had the same issue, I did the following on DS-160 for my father (and similarly for my mother).
Lets pretend my father's full name is Nguyen Van Quoc Viet, I then filled the DS-160 as below:
SurName: Nguyen
Given Name: Van Quoc Viet
His name was printed on the VISA as "Nguyen Van Quoc Viet"
Later, when I helped him applied for the driver license, I asked the DMV to show me if the VISA data was correct, it indeed was.
Last Name: Nguyen
First Name: Viet
Middle Name: Van Quoc
So, yes, while printed on VISA exactly the same, the data behind is different.