In the TJ-II stellarator, the last mirror of both ECRH transmission lines is an in-vessel steerable phase correcting mirror that distorts the power distribution of the reflected beam whenever the mirror orientation angles deviate from the design position. Beam distortions cannot be measured due to space restrictions when accessing the inner part of the device, particularly if we have in mind the wide range of orientation angles needed to carry out ECRH and ECCD experiments, for which such experimental characterisation should be performed. Instead, a set of full wave electromagnetic simulations allows us to estimate the power distribution of the beam coupled to the plasma and how this distribution changes when the in-vessel mirror is steered. High power characterisation of the transmission lines is first accomplished and documented in order to determine the beam power distribution before entering the vessel. For the perpendicular injection case, the additional contribution to the beam distortion produced by its passage through the structure supporting the window is calculated. Leaving aside the power losses due to beam trimming (7% and 10% for the first and second line respectively), the added distortion produced by the window housing is of minor importance compared to the effect of the internal mirror. The impact of beam distortion on the width of the power deposition profiles for several launching directions is addressed using the ray/beam tracing code TRUBA. Results show that the beam waist in the plasma appears smaller and ahead of the position predicted by quasi optical theory, leading to beam widening in the magnetic axis where the resonant layer is located. Despite the evident distortion, power deposition profiles calculated with beam tracing, refined with a Gabor expansion of the wave field distribution in case of strongly oblique incidence, do not differ much from the predictions of the standard ray tracing calculation.