I define Sans Serif fonts for text for my beamer presentation in Russian:
\usepackage{luatextra}
\usepackage{polyglossia}
\setmainlanguage[babelshorthands=true]{russian}
\setotherlanguage{english}
\defaultfontfeatures{Renderer=Basic, Ligatures=TeX}
\newfontfamily\cyrillicfonttt{CMU Typewriter Text}
\newfontfamily\cyrillicfont{CMU Sans Serif}
\setmainfont{CMU Sans Serif}
\setsansfont{CMU Sans Serif}
\setmonofont{CMU Typewriter Text}
I would like to use Sans Serif fonts everywhere except equations. To do it, I write
\mode<presentation> {
\usefonttheme{professionalfonts} ... }
But there is the problem with option DeclareMathOperator. For instance, I write
\DeclareMathOperator{\Tr}{\mathrm{Tr}\,}
and obtain Sain Serif typesetting of this operator instead of desired Serif format. How to deal with this problem?

\documentclassto\end{document}and shows the issue. – egreg Jun 05 '19 at 22:37