(This is to address the previous comment by the OP. Since the previous answer is already long, this is being done in a separate answer.)
The answer to the mentioned comment is the following: there is no positive nonincreasing deterministic sequence $(g_n)$ such that $g_n\to0$ (as $n\to\infty$) and $\liminf_n \frac{Y_n}{g_n}=1$ a.s.
More specifically, let $H$ denote the set of all positive nonincreasing deterministic sequences $h=(h_n)$ such that $h_n\to0$.
Let us say that $h\in H$ is a lower bound for the $Y_n$'s if a.s. the events $\{Y_n<h_n\}$ occur only finitely often (f.o.), that is, only for finitely many values of $n$. Similarly, let us say that $h\in H$ is a lower bound for the $X_n$'s if a.s. the events $\{X_n<h_n\}$ occur only f.o.
The key observation is that $h\in H$ is a lower bound for the $Y_n$'s if and only if $h$ is a lower bound for the $X_n$'s. See the details on this at the end of this answer.
On the other hand, by the Borel--Cantelli lemma, $h\in H$ is a lower bound for the $X_n$'s if and only if
$$\sum_n P(X_n<h_n)=\sum_n \min(1,h_n)<\infty.$$
Thus, $h\in H$ is a lower bound for the $Y_n$'s if and only if
$$\sum_n h_n<\infty.$$
So, if $h\in H$ is a lower bound for the $Y_n$'s, then $ah$ is a lower bound for the $Y_n$'s for any real $a>0$. Moreover, if $h\in H$ is a lower bound for the $Y_n$'s, then $h/b\in H$ is a lower bound for the $Y_n$'s for some sequence $b\in H$ (so that $b_n\to0$).
We conclude that, indeed, there is no positive nonincreasing deterministic sequence $(g_n)$ such that $g_n\to0$ and $\liminf_n \frac{Y_n}{g_n}=1$ a.s.
Furthermore, for any positive real (deterministic) $A$ and $B$,
there is no positive nonincreasing deterministic sequence $g=(g_n)$ such that $g_n\to0$ and $\liminf_n \frac{Y_n}{g_n}\in[A,B]$ a.s. Indeed, the latter condition would imply that $\frac A2\,g$ is a lower bound for the $Y_n$'s, while $2B\,g$ is not a lower bound for the $Y_n$'s -- which contradicts what was noted above: if $h\in H$ is a lower bound for the $Y_n$'s, then $ah$ is a lower bound for the $Y_n$'s for any real $a>0$.
Details: Note that $Y_n\le X_n$ for all $n$. So, a.s.
$$(\text{the events $\{Y_n<h_n\}$ occur only f.o.})
\implies(\text{the events $\{X_n<h_n\}$ occur only f.o.}).$$
Vice versa, suppose that a.s. the events $\{X_n<h_n\}$ occur only f.o. -- that is, for some random positive integer $N$ and all $n>N$ we a.s. have $X_n\ge h_n$. For each $n$ there is some random $K_n\in\{1,\dots,n\}$ such that $Y_n=X_{K_n}$. Moreover, $Y_n\to0$ a.s. and $X_k>0$ for all $k$ a.s. So, $K_n\to\infty$ a.s. So, there is some random positive integer $N_1\ge N$ such that $k_n>N$ a.s. for all $n>N_1$. So, for all $n>N_1$, a.s.
$$Y_n=X_{K_n}\ge h_{K_n}\ge h_n,$$
so that a.s. the events $\{X_n<h_n\}$ occur only f.o. Thus,
$$(\text{the events $\{X_n<h_n\}$ occur only f.o.})
\implies(\text{the events $\{Y_n<h_n\}$ occur only f.o.})$$
and hence
$$(\text{the events $\{Y_n<h_n\}$ occur only f.o.})
\iff(\text{the events $\{X_n<h_n\}$ occur only f.o.}). \quad\Box$$