Choose open subintervals $I_1,I_2,\dots$ of $U$ such that if $J$ is an open subinterval of $U,$ then $J$ contains $I_n$ for some $n.$ (For example we could let $I_1,I_2,\dots$ be the open subintervals of $U$ with rational endpoints.)
We can then choose pairwise disjoint countable sets $D_n\subset I_n$ such that $D_n$ is dense in $I_n$ for each $n.$
And we can choose pairwise disjoint countable sets $E_n\subset U$ such that $E_n$ is dense in $U$ for each $n.$
Now define $f:U\to U$ as follows: For each $n=1,2,\dots$ let $f$ be a bijection of $D_n$ onto $E_n.$ Then $f$ is a bijection of $\cup D_n$ onto $\cup E_n.$ Now $U\setminus \cup D_n$ has the same cardinality as $U\setminus \cup E_n.$ So to finish the definition of $f,$ let $f$ be any bijection of $U\setminus \cup D_n$ onto $U\setminus \cup E_n.$
It follows that $f:U\to U$ is a bijection. Let $I\subset U$ be a subinterval. Then $I_n\subset I$ for some $n.$ Since $f(I_n) = E_n,$ $f$ is the desired function.