was there any plebiscite between Mexico and the United States in order to establish if Mexicans wanted to stay or leave Texas?
There was no plebiscite in the conquered territories after the war. The provisions of the treaty, quoted below, gave Mexicans two options. They could announce their intent to return to Mexico proper and retain their US possessions or stay and become US citizens. In practice, Mexicans and Mexican-Americans often lost their holdings regardless of whether they stayed or not.
Mexicans now established in territories previously belonging to Mexico, and which remain for the future within the limits of the United States, as defined by the present treaty, shall be free to continue where they now reside, or to remove at any time to the Mexican Republic, retaining the property which they possess in the said territories, or disposing thereof, and removing the proceeds wherever they please, without their being subjected, on this account, to any contribution, tax, or charge whatever.
Those who shall prefer to remain in the said territories may either retain the title and rights of Mexican citizens, or acquire those of citizens of the United States. But they shall be under the obligation to make their election within one year from the date of the exchange of ratification's of this treaty; and those who shall remain in the said territories after the expiration of that year, without having declared their intention to retain the character of Mexicans, shall be considered to have elected to become citizens of the United States.