How is ##[\cdot,\cdot]## defined?
And are we talking about a linear operator?
The use of unitary suggests that we speak about groups, in which case it would be ##[X,A]=X^{-1}\cdot A^{-1}\cdot X\cdot A##. However, in that case, ##L## wouldn't be a linear operator.
It is also possible, that you meant ##L(A)=X^{-1}AX,## the adjoint operator ##\operatorname{Ad}(X)## of a matrix group. This would at least be a linear operator.
However, experience plus the term operator suggests that you use it as ##L(A)=\mathfrak{ad}(X)(A)=[X,A]=X\cdot A-A\cdot X## in which case the corresponding property would be skew-hermitian.
So you want to know whether there is an operator ##L\, : \,A\longmapsto [X,A]## such that
$$
\langle L(A),L(B) \rangle =\langle [X,A],[X,B] \rangle =\langle A,B \rangle
$$
I am not sure whether there is such a general answer to it, that it is completely irrelevant where ##A,B## are taken from and how ##[\cdot,\cdot]## is defined. My suspicion is a no. So please define the commutator and the domain the matrices are taken from.
In case ##L(A)=[X,A]=X^{-1}A^{-1}XA## the answer is no. ##L## isn't linear in that case and unitary requires linearity.
In case ##L(A)=[X,A]=\operatorname{Ad}(X)(A)=X^{-1}AX##, the answer is yes, e.g. ##L=X=1.##
In case ##L(A)=\mathfrak{ad}X## then ##L=X=0## is unitäry on all complex vector spaces.
This is neither standard nor generally an inner product at all. It suggests that you mean the Killing-form ##(A,B)\longmapsto \operatorname{tr}(\mathfrak{ad}(A),\mathfrak{ad}(B)).## This is an inner product in case ##A,B## are taken from a semisimple, in your case complex, Lie algebra.
Here is an overview that should help you navigate through the various set-ups:
https://www.physicsforums.com/insights/lie-algebras-a-walkthrough-the-basics/ usage of the terms.