One formal approach I like is using the fibered Yoneda lemma. What we need is that fibered functors $C/x\to F$ for $p\colon F\to C$ a fibration (i.e. such that $C/x\to F\to C$ is the domain functor, and such that $C/x\to F$ sends cartesian morphisms to cartesian morhpisms) are the same data as a choice of object $a$ of $p^{-1}(x)$ (image of terminal object of $C/x$) and cartesian lifts of $y\to pa$ for each $y$ in $C$. Moreover such fibered functors are themselves fibrations.
Additionally, we only need the fact every functor $F\to C/x$ such that $F\to C/x\to C$ is the fibration $p\colon F\to C$ is fibered for fibrations over $C$ since every morphism in $C/x$ is cartesian. We can now argue as follows.
First, $C/x\to (C/y)/v$ is the fibered functor (for fibrations over $C$) preserving terminal objects. It is itself a fibration, hence composed with $(C/y)/v\to C/y$ gives a fibration over $C/y$. Then $C/x\to(C/y)/v$ is also fibered for fibrations over $C/y$.
Likewise, $(C/y)/v\to C/x$ is the fibered functor (for fibrations over $C/y$ and also over $C$) preserving terminal objects. Consequently, the composites of the two functors are fibered functors (for fibrations over $C$ and over $C/y$ respectively) from $C/x$ to itself and respectively from $(C/y)/v$ to itself. Morever, both preserve terminal objects, so by the fibered Yoneda lemma are determined by a choice of cartesian lifts. However, by definition of the representable fibrations, i.e. slice categories, cartesian lifts are unique, so the resulting composite functors are the identity functors.
Regarding the formal approach using the univeral properties of slice objects, I'm inclined to say the answer is no because the $2$-universal property of a slice object, or more generally comma object, asserts that certain comparison functors are equivalences (or isomorphisms in the case of a strict comma object). However, the targets of those functors are themselves slice categories, or more generally comma categories.
Consequently, the by-hand proof of $(C/y)/v\cong C/x$ also gives the formal result for slice objects. In other words, the formal result easily reduced to the by-hand result. The details are below.
For concreteness, recall the following construction in the case of categories. Given functors $f_i\colon D_i\to C$ for $i=1$, the objects of the comma category $f_1/f_2$ are triples consisting of an object $d_1$ of $D_1$, an object $d_2$ of $D_2$, and a morphism $f_1(d_1)\to f_2(d_2)$ of $C$. A morphism of $f_1/f_2$ from $f_1(d_1)\to f_2(d_2)$ to $f_1(d'_1)\to f_2(d'_2)$ is a pair of morphisms $d_i\to d'_i$ so that the composite $f(d_1)\to f_2(d_2)\to f_2(d'_2)$ equals the composite $f(d_1)\to f(d'_1)\to f(d'_2)$.
The particular case of the slice category is where $f_1=\mathrm{id}_C\colon C\to C$, and $f_2=x\colon *\to C$ where $*$ is the $1$-object category.
The $2$-categorical structure of the slice category consists of a pair of $1$-morphisms $\pi_i\colon f_1/f_2\to D_i$ and a $2$-morphism $\alpha_{f/g}\colon f_1\pi_1\Rightarrow f_2\pi_2\colon f_1/f_2\to C$.
What the $2$-universal property asserts is that the comparison functor from the category $[E,f_1/f_2]$ (of $1$-morpihsms $E\to f_1/f_2$ and $2$-morphisms between them) to the slice category is $[E,f_1]/[E,f_2]$ of the functors $[E,f_i]\colon [E,D_i]\to[E,C]$ is an equivalence of categories (an isomorphism if the comma object is strict). Explicitly, this comparison functor arises from the functors $[E,\pi_i]\colon[E,f_1/f_2]\to[E,D_i]$ and natural transformation $[E,\alpha]\colon [E,f_1][E,\pi_1]\Rightarrow[E,f_2][E,\pi_2]\colon[E,f_1/f_2]\to[E,C]$.
Note that if $D_2=*$ is a terminal object, then $[E,*]$ is a one-object category, so the resulting comma category $[E,f_1]/[E,f_2]$ is indeed a slice category. Thus we would have an isomorphism $([E,C]/[E,y])/[E,v]\cong[E,C]/[E,x]$ from the isomorphism $(C/y)/v\cong C/x$ in the case of categories.
Spelled out in detail, an object in $(C/y)/v$ is a morphism in $C/y$ to $v\colon x\to y$ as an object of $C/y$, which is a morphism $z\to y$ equpped with a factorization $z\to x\to y$ through $v\colon x\to y$. Evidently, the factorization $z\to x$ suffices to determine the object, whence we have a bijection on objects from $(C/y)/v$ to $C/x$.
A morphism is simply a morphism $z_1\to z_2$ such that $z_1\to y$ facotrs as $z_1\to z_2\to y$, which is the same data as a morphism $z_1\to z_2$ such that $z_1\to x$ factors as $z_1\to z_2\to x$. Thus we have a bijection on morphisms as well.
Plugging in either the slice object $(C/y)/v$ or $C/x$ for $E$ allow us to transport its identity $1$-morphism along the equivalences (isomorphism) $[C/\dots,C/\dots]\to[C/\dots..,C]/\dots$ and the isomorphism $([C/\dots,C]/[C/\dots,y])/[C/\dots,v]\cong[C/\dots,C]/[C/\dots,x]$ to obtain its structure as the other slice object.