if you use the grammatical structure "mientras que + subjuntivo", you should place it in the beginning of a sentence (and after that, you have to put a ","). But if you use "mientras + subjuntivo", you should place it in the end of a sentence.
For example:
1)Mientras que me ayudes, va a estar todo bien.
2) Voy a estudiar en la universidad mientras pueda.
Those are the correct ways to use "mientras (que) + subjuntivo"
Espero haberte ayudado :)