This discussion is also related to the "about" text in this profile:
Rav Tsvi/Tzvi/Zvi Dov I Margulis, A.B.D. Pressburgh Yechiel (Yosef?) Schlesinger and Rav Michael Leib Margulis
In אור ישראל שו"ת by R' Yisrael Schwartz (https://tablet.otzar.org/#/b/621858/p/1/t/1678870577750/fs/0/start/...) p. 639, he suggests that the connection was as follows:
Rabbi Akiva Yehosef Schlesinger
her father → R' Yechiel Schlesinger "Divrei Yechiel"
his father → Tzvi Dov Schlesinger-Margulis
his father → Yosef Schlesinger
his father → Tzvi Dov Schlesinger (the first)
his father → Michoel Leib
his father → Rabbi Simcha Bunim Ginz-Schlesinger (BROTHER of R' Akivah Eiger II!)
his father → Gittel Glückchen Günsz
his mother → Rabbi Akiva Eger, the Elder
(It seems a few trees in MyHeritage copied this from him, or got it from the same place).
In the profile of Tzvi Dov I, D.Z. wrote:
"In the sefer Ilonei Yachas - Circa 2005 by Betzalel Berenstein, he notes that R' Tzi Dov Margulis the first's father R' Mechel Leib Margulis couldn't be a descendant of Reb Akiva Eiger The First because the years don't match, he was before R' A.E. the 1st."
I haven't seen that book, but it makes sense:
R' Simcha Bunim (grandson of R' Akivah Eiger I) was only 3 years old in 1768, so his "grandson" (R' Tzvi Dov I) couldn't have been signing documents that year...