Using the settings of the answer to the question linked, you can use a conditional to activate or deactivate the margins at will:
\documentclass{article}
\usepackage{tikzpagenodes}
\usetikzlibrary{calc}
\usepackage{ifthen}
\usepackage[contents={},opacity=1,scale=1.485]{background}
\newif\ifBgMat
\AddEverypageHook{%
\ifBgMat
\ifthenelse{\isodd{\thepage}}%
{\backgroundsetup{angle=0,position={0.9\textwidth,-
.7\textheight},%
contents={\tikz[remember picture,overlay]{ %
\coordinate (x) at (current page marginpar area.south east|-current page.south east);
\draw[draw=none,fill=magenta!20]([xshift=-\textwidth]x)rectangle(current page.north west);}}}}%
{\backgroundsetup{angle=0,position={0.9\textwidth,-
.7\textheight},%
contents={\tikz[remember picture,overlay]{ %
\coordinate (x) at (current page marginpar area.south east|-current page.south east);
\draw[draw=none,fill=orange!20](x)rectangle(current page.north east);}}}}%
\BgMaterial
\else
\fi}
\usepackage{lipsum} % dummy text
\BgMattrue% activate colored margins
\begin{document}
\lipsum[1-8]
\clearpage
\BgMatfalse% deactivate colored margins
\lipsum[1-8]
\clearpage
\BgMattrue% activate colored margins
\lipsum[1-8]
\end{document}
