\DocumentMetadata{tagging = on, pdfstandard = ua-2}

\documentclass{ltx-talk}

\title{Fame in verbatim}

\NewEnvironmentCopy{Frame}{frame*}
\usepackage{fancyvrb}

\begin{document}
\begin{Frame}
  \frametitle{Demonstrating the class}
  \begin{Verbatim}[gobble = 4]
    \begin{frame*}
      Some content here
    \end{frame*}
  \end{Verbatim}
\end{Frame}
\end{document}
