There is a linear isomorphism between upper-triangular matrices and symmetric matrices given by $$f : \{\text{upper-triangular}\} \mapsto \{\mathrm{symmetric}\}, \; \; A \mapsto \frac{A + A^T}{2}.$$
On symmetric matrices, we can act by conjugation: $$A \mapsto B^T A B, \; \; B \in \mathbb{R}^{n \times n}.$$
Question: Is there a closed-form way to express the corresponding action on upper-triangular matrices? i.e. given an upper-triangular matrix $A$ and a matrix $B$, what is the upper-triangular matrix corresponding to $\frac{B^T A B + B^T A^T B}{2}$?
When $B$ is diagonal then it is just $B^T A B$ since this is upper-triangular again. In general it isn't clear to me.