I've had this problem a few times with my own phone, a Galaxy S8, and it has always been because the charging cable or the plug (or both) are not working correctly - or they aren't capable of providing fast charging. After replacing them my phone charges fast as normal. What condition is your charger in? Is it specifically a fast-charger? Do you get a message saying to check your charging connection?