I had something similar happen to me a while back, especially when I slept with the pillow too high or lay in an awkward position. Morning swelling in your fingers is usually related to how your blood circulates while you sleep, fluid retention (which is more common than you'd think), or simply the position you sleep in. If it goes down during the day that's actually a pretty good sign, because it suggests it's something temporary and not persistent inflammation.
That said, there are several things you could look into. First, try changing your pillow height or sleep with your hands elevated higher than your body, so gravity helps prevent fluid from pooling. Also pay attention to your salt intake, dehydration at night, and whether you've changed anything in your routine lately (stress, hormonal changes, new medications). Some systemic issues like thyroid problems or fluid retention can cause this too.
If the swelling persists for more than two weeks, your joints hurt, you notice redness, or you're just worried about it, better to see a doctor to rule anything out. But in most cases it's something manageable with small changes. In the meantime, start moving your fingers as soon as you wake up, do some hand circles, and keep your hand elevated.