I am trying to make a two-sided document with section names in the header of even numbered pages, and subsection names on odd numbered pages. The odd numbered pages on which my sections start shall feature no section name in the header. All this works well in the code below.
My problem is that it does not work for the table of contents. How can I disable the dislay of "Contents" in the header of the page on which the TOC starts? The same happens with the bibliography section.
\documentclass[12pt,a4paper,twoside]{scrartcl}
\usepackage[automark, headsepline]{scrlayer-scrpage}
\ihead*{\pagemark}
\begin{document}
\begin{titlepage} Title
\end{titlepage}
\thispagestyle{empty}
\mbox{}
\newpage
\mbox{}
\tableofcontents
\newpage
\thispagestyle{empty}
\mbox{}
\newpage
\section{Section}
\subsection{Subsection 1}
\newpage
\subsection{Subsection 2}
\newpage
\mbox{}
\newpage
\end{document}
EDIT: It turns out that I could fix the problem by defining a custom pagestyle, and using that for the first page of TOC and bibliography. In particular I defined
\defpagestyle{mystyle}{{\headmark\hfill\pagemark}{\pagemark}{}}{}
which generates a header that does not include the headmark on odd numbered pages.