Does your 'old' Samsung phone / tablet support the later 5G WiFi standards? Your new router may be a 5G Router and your phone may not support 5G. Check the specification of the router and see what it supports, then do the same for your phone / tablet. Might be time to upgrade your phone / tablet.