A transitional phrase can only start a sentence. When "however" appears inside a sentence, it is a type of parenthesis, and it should be offset with commas.
Thank you!
Or: He likes mustard; however, I prefer catsup.