[BUGFIX] Store forced state in a cookie

When a link for forcing the mobile or the standard version is
used a cookie is set to store this selection for furture
requests.

Resolves: #49659